From fc944d75eeebd4e73c02e2b4d9af082963f22522 Mon Sep 17 00:00:00 2001 From: Correl Date: Wed, 24 Jun 2020 21:30:41 -0400 Subject: [PATCH] [provisioning] Fix bugs in provision.sh --- provision.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/provision.sh b/provision.sh index 188a0df..08f1a7c 100755 --- a/provision.sh +++ b/provision.sh @@ -76,10 +76,10 @@ function _run { shift if [ -z "$DEBUG" ]; then echo -n "$msg..." - $@ >/dev/null 2>&1 + "$@" >/dev/null 2>&1 else echo "$msg..." - $@ + "$@" fi echo "${green}done.${normal}" } @@ -110,11 +110,10 @@ function _recipe { USER=${USER:-$(whoami)} _PLATFORM=$(uname -s | awk '{print tolower($1)}') -if [ -z "${INSTALL[@]}" ]; then +if [ "${#INSTALL[@]}" -eq 0 ]; then INSTALL=(base) fi - for recipe in "${INSTALL[@]}"; do _recipe $recipe done