$list now has quotes

This commit is contained in:
Nathaniel Landau
2015-05-28 14:24:24 -04:00
parent a71c77949c
commit 2220670895

View File

@@ -133,7 +133,7 @@ function doInstall () {
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 +147,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