mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Fix script syntax.
This commit is contained in:
parent
7dfe2c32f2
commit
6dbaadfc1e
|
@ -19,6 +19,6 @@ for package in $packages; do
|
|||
if test -f $f; then echo $f; fi;
|
||||
done |
|
||||
xargs tar -czf $cache_filepath -C /
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Action complete. ${#packages[@]} package(s) installed and cached."
|
||||
|
|
|
@ -10,6 +10,6 @@ for cache_filepath in $(ls $cache_dir); do
|
|||
echo "* Restoring $package from cache $cache_filepath... "
|
||||
sudo tar -xf $cache_filepath -C $cache_restore_root
|
||||
sudo apt-get --yes --only-upgrade install $package
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Action complete. ${#packages[@]} package(s) restored."
|
||||
|
|
Loading…
Reference in a new issue