From 6dbaadfc1e21049b91dcf31df6b6bbc8e049d0ea Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Sat, 16 Oct 2021 11:34:14 -0700 Subject: [PATCH] Fix script syntax. --- install_and_cache_pkgs.sh | 2 +- restore_pkgs.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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."