mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-25 03:00:05 +00:00
[provisioning] Fix bugs in provision.sh
This commit is contained in:
parent
bbacd5a441
commit
fc944d75ee
1 changed files with 3 additions and 4 deletions
|
@ -76,10 +76,10 @@ function _run {
|
||||||
shift
|
shift
|
||||||
if [ -z "$DEBUG" ]; then
|
if [ -z "$DEBUG" ]; then
|
||||||
echo -n "$msg..."
|
echo -n "$msg..."
|
||||||
$@ >/dev/null 2>&1
|
"$@" >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
echo "$msg..."
|
echo "$msg..."
|
||||||
$@
|
"$@"
|
||||||
fi
|
fi
|
||||||
echo "${green}done.${normal}"
|
echo "${green}done.${normal}"
|
||||||
}
|
}
|
||||||
|
@ -110,11 +110,10 @@ function _recipe {
|
||||||
USER=${USER:-$(whoami)}
|
USER=${USER:-$(whoami)}
|
||||||
_PLATFORM=$(uname -s | awk '{print tolower($1)}')
|
_PLATFORM=$(uname -s | awk '{print tolower($1)}')
|
||||||
|
|
||||||
if [ -z "${INSTALL[@]}" ]; then
|
if [ "${#INSTALL[@]}" -eq 0 ]; then
|
||||||
INSTALL=(base)
|
INSTALL=(base)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
for recipe in "${INSTALL[@]}"; do
|
for recipe in "${INSTALL[@]}"; do
|
||||||
_recipe $recipe
|
_recipe $recipe
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue