diff --git a/restore_pkgs.sh b/restore_pkgs.sh index 8231b54..c3bfe14 100755 --- a/restore_pkgs.sh +++ b/restore_pkgs.sh @@ -8,8 +8,9 @@ cache_restore_root=$2 for cache_filepath in $(ls $cache_dir); do echo "* Restoring $cache_filepath from cache... " - sudo tar -xf $cache_filepath -C $cache_restore_root - sudo apt-get --yes --only-upgrade install $package + sudo tar -xf $cache_filepath -C $cache_restore_root done +# Update all packages. +sudo apt-get --yes --only-upgrade install echo "Action complete. $(ls -l $cache_dir | wc -l) package(s) restored."