From 91e3a981334ab83048081f0b8f0e5a2676fb069e Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Sat, 16 Oct 2021 13:00:45 -0700 Subject: [PATCH] Update packages after restore. --- restore_pkgs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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."