Fixed a problem with quoting variables

This commit is contained in:
Nathaniel Landau
2015-06-28 22:50:27 -04:00
parent 3c837bc8e9
commit 59ef02c172

View File

@@ -19,6 +19,7 @@
# ------------------------------------------------------ # ------------------------------------------------------
hasHomebrew () { hasHomebrew () {
# Check for Homebrew # Check for Homebrew
#verbose "Checking homebrew install"
if type_not_exists 'brew'; then if type_not_exists 'brew'; then
warning "No Homebrew. Gots to install it..." warning "No Homebrew. Gots to install it..."
seek_confirmation "Install Homebrew?" seek_confirmation "Install Homebrew?"
@@ -129,11 +130,11 @@ function to_install() {
# Install the desired items that are not already installed. # Install the desired items that are not already installed.
function doInstall () { function doInstall () {
list="$(to_install "${RECIPES[*]}" "$($LISTINSTALLED)")" list=$(to_install "${RECIPES[*]}" "$(${LISTINSTALLED})")
if [[ "${list}" ]]; then if [[ "${list}" ]]; then
seek_confirmation "Confirm each package before installing?" seek_confirmation "Confirm each package before installing?"
if is_confirmed; then if is_confirmed; then
for item in "${list[@]}" for item in ${list[@]}
do do
seek_confirmation "Install ${item}?" seek_confirmation "Install ${item}?"
if is_confirmed; then if is_confirmed; then
@@ -147,7 +148,7 @@ function doInstall () {
fi fi
done done
else else
for item in "${list[@]}" for item in ${list[@]}
do do
notice "Installing ${item}" notice "Installing ${item}"
# FFMPEG takes additional flags # FFMPEG takes additional flags