diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index e73b978..7f1b90d 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -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." diff --git a/restore_pkgs.sh b/restore_pkgs.sh index c83c6ea..4e569d0 100755 --- a/restore_pkgs.sh +++ b/restore_pkgs.sh @@ -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."