Make directory as a condition of run.

This commit is contained in:
awalsh128 2021-10-12 17:39:17 -07:00
parent d9e6c214de
commit 5fd891d19b

5
run.sh
View file

@ -24,11 +24,6 @@ packages="${@:3}"
##############################################################################
validate_args() {
echo -n "* Validating action arguments... ";
if [ ! -d "$cache_dir" ]; then
echo "aborted."
echo "Cache directory '$cache_dir' does not exist." >&2
exit 1
fi
if [ "$packages" == "" ]; then
echo "aborted."
echo "* Packages argument cannot be empty." >&2