From 4e7f5ac971fd5216688f28c0f2555f9acfaf2513 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Thu, 21 Oct 2021 21:39:47 -0700 Subject: [PATCH] Fix conditionals for install and restore. --- post_cache_action.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post_cache_action.sh b/post_cache_action.sh index f4e8caf..898441f 100755 --- a/post_cache_action.sh +++ b/post_cache_action.sh @@ -21,7 +21,7 @@ packages="${@:5}" script_dir=$(dirname $0) -if [ ! $cache_hit ] || [ $refresh ]; then +if [ "$cache_hit" == false ] || [ "$refresh" == true ]; then $script_dir/install_and_cache_pkgs.sh ~/cache-apt-pkgs $packages else $script_dir/restore_pkgs.sh ~/cache-apt-pkgs $cache_restore_root