Fix conditionals for install and restore.

This commit is contained in:
awalsh128 2021-10-21 21:39:47 -07:00
parent dec2761421
commit 4e7f5ac971

View file

@ -21,7 +21,7 @@ packages="${@:5}"
script_dir=$(dirname $0) 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 $script_dir/install_and_cache_pkgs.sh ~/cache-apt-pkgs $packages
else else
$script_dir/restore_pkgs.sh ~/cache-apt-pkgs $cache_restore_root $script_dir/restore_pkgs.sh ~/cache-apt-pkgs $cache_restore_root