diff --git a/homebrew-update-notifier.sh b/homebrew-update-notifier.sh old mode 100755 new mode 100644 index 66e280b..69728e5 --- a/homebrew-update-notifier.sh +++ b/homebrew-update-notifier.sh @@ -16,15 +16,15 @@ TERM_APP='/Applications/Utilities/Terminal.app' BREW_EXEC='/usr/local/bin/brew' GROWL_NOTIFY='/usr/local/bin/growlnotify' GROWL_TITLE="Homebrew Update(s) Available" - GROWL_ARGS="-n 'MacPorts' -d $GROWL_NOTIFY -a $BREW_EXEC" +GROWL_ARGS="-n 'MacPorts' -d $GROWL_NOTIFY -a $BREW_EXEC" -$BREW_EXEC update 2>&1 > /dev/null +$BREW_EXEC update > /dev/null 2>&1 outdated=`$BREW_EXEC outdated` if [ -z $outdated ] ; then if [ -e $GROWL_NOTIFY ]; then # No updates available - $GROWL_NOTIFY $GROWL_ARGS -m '' -t "No Homebrew Updates Available" + $GROWL_NOTIFY $GROWL_ARGS -m '' -t "No Homebrew updates available" fi else # We've got an outdated port or two