From f8e603229fd6edd5895ad0990b2a5b7f2790a50b Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Sat, 7 Feb 2015 13:53:20 -0500 Subject: [PATCH] added verbose notifications for debugging --- lib/setupScriptFunctions.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/setupScriptFunctions.sh b/lib/setupScriptFunctions.sh index 5044c45..aad43d7 100755 --- a/lib/setupScriptFunctions.sh +++ b/lib/setupScriptFunctions.sh @@ -131,12 +131,14 @@ function doInstall () { do seek_confirmation "Install ${item}?" if is_confirmed; then - ${INSTALLCOMMAND} $item + notice "Installing ${item}" + ${INSTALLCOMMAND} ${item} fi done else for item in ${list[@]} do + notice "Installing ${item}" ${INSTALLCOMMAND} ${item} done fi @@ -162,7 +164,12 @@ brewCleanup () { sudo chsh -s "${binroot}/bash" "$USER" >/dev/null 2>&1 success "Please exit and restart all your shells." fi + brew cleanup + + if $(brew cask > /dev/null); then + brew cask cleanup + fi } # hasDropbox