mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 05:33:48 -05:00
$list now has quotes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user