mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 13:43:46 -05:00
Fixed a problem with quoting variables
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user