Fix script syntax.

This commit is contained in:
awalsh128 2021-10-16 11:34:14 -07:00
parent 7dfe2c32f2
commit 6dbaadfc1e
2 changed files with 2 additions and 2 deletions

View file

@ -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."

View file

@ -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."