From 58be009328c3bac429557a4fe194b94ddd1c13cc Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Fri, 22 Oct 2021 00:12:56 -0700 Subject: [PATCH] Work around cache-hit bug in cache action. --- post_cache_action.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/post_cache_action.sh b/post_cache_action.sh index 54d7cec..5503013 100755 --- a/post_cache_action.sh +++ b/post_cache_action.sh @@ -18,9 +18,9 @@ packages="${@:4}" script_dir=$(dirname $0) -if [ "$cache_hit" == false ]; then - $script_dir/install_and_cache_pkgs.sh ~/cache-apt-pkgs $packages -else +if [ "$cache_hit" == true ]; then $script_dir/restore_pkgs.sh ~/cache-apt-pkgs $cache_restore_root +else + $script_dir/install_and_cache_pkgs.sh ~/cache-apt-pkgs $packages fi echo ""