Permalink
Browse files

Merge pull request #1 from mr-szymanski/master

Fixed some things
  • Loading branch information...
2 parents 8251bc6 + b3a47d0 commit 7fabdab8a74e102bc8a5d600eb9dd0e93c2518df @amdavidson amdavidson committed Aug 27, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 homebrew-update-notifier.sh
@@ -13,22 +13,22 @@
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"
fi
else
# We've got an outdated port or two
-
+
# Nofity via growl
if [ -e $GROWL_NOTIFY ]; then
lc=$((`echo "$outdated" | wc -l` - 1))
@@ -44,4 +44,4 @@ $message"
# Send to growlnotify
echo "$message" | $GROWL_NOTIFY $GROWL_ARGS -t $GROWL_TITLE
fi
-fi
+fi

0 comments on commit 7fabdab

Please sign in to comment.