[provisioning] Fix bugs in provision.sh

This commit is contained in:
Correl Roush 2020-06-24 21:30:41 -04:00
parent bbacd5a441
commit fc944d75ee

View file

@ -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