mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 21:53:47 -05:00
added verbose notifications for debugging
This commit is contained in:
@@ -131,12 +131,14 @@ function doInstall () {
|
|||||||
do
|
do
|
||||||
seek_confirmation "Install ${item}?"
|
seek_confirmation "Install ${item}?"
|
||||||
if is_confirmed; then
|
if is_confirmed; then
|
||||||
${INSTALLCOMMAND} $item
|
notice "Installing ${item}"
|
||||||
|
${INSTALLCOMMAND} ${item}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
for item in ${list[@]}
|
for item in ${list[@]}
|
||||||
do
|
do
|
||||||
|
notice "Installing ${item}"
|
||||||
${INSTALLCOMMAND} ${item}
|
${INSTALLCOMMAND} ${item}
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@@ -162,7 +164,12 @@ brewCleanup () {
|
|||||||
sudo chsh -s "${binroot}/bash" "$USER" >/dev/null 2>&1
|
sudo chsh -s "${binroot}/bash" "$USER" >/dev/null 2>&1
|
||||||
success "Please exit and restart all your shells."
|
success "Please exit and restart all your shells."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
brew cleanup
|
brew cleanup
|
||||||
|
|
||||||
|
if $(brew cask > /dev/null); then
|
||||||
|
brew cask cleanup
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# hasDropbox
|
# hasDropbox
|
||||||
|
|||||||
Reference in New Issue
Block a user