Permalink
Browse files

Quoted variable to get rid of error

  • Loading branch information...
1 parent 8251bc6 commit e60861d4499d8d6919015d1efd39a889ed88705e Mark Szymanski committed May 17, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 homebrew-update-notifier.sh
@@ -13,15 +13,15 @@
TERM_APP='/Applications/Utilities/Terminal.app'
-BREW_EXEC='/usr/local/bin/brew'
+BREW_EXEC='$HOME/.homebrew/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
outdated=`$BREW_EXEC outdated`
-if [ -z $outdated ] ; then
+if [ -z "$outdated" ] ; then
if [ -e $GROWL_NOTIFY ]; then
# No updates available
$GROWL_NOTIFY $GROWL_ARGS -m '' -t "No Homebrew Updates Available"
@@ -44,4 +44,4 @@ $message"
# Send to growlnotify
echo "$message" | $GROWL_NOTIFY $GROWL_ARGS -t $GROWL_TITLE
fi
-fi
+fi

0 comments on commit e60861d

Please sign in to comment.