From ac03b4f3ff5d90f9e40d6951871837cd2f15ccad Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Tue, 12 Oct 2021 12:16:56 -0700 Subject: [PATCH] Create cache directory if not exists. --- run.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index a2e6061..d2c959c 100755 --- a/run.sh +++ b/run.sh @@ -131,7 +131,13 @@ install_and_cache_pkg() { } validate_args -clean_cache + +if [ -d $cache_dir ]; then + clean_cache +else + # Initial run of action; no directory will exist. + mkdir -p $cache_dir +fi for package in $packages; do echo "* Processing package $package..."