Skip to content

Instantly share code, notes, and snippets.

@bnolan
Created July 4, 2010 23:28
Show Gist options
  • Save bnolan/463855 to your computer and use it in GitHub Desktop.
Save bnolan/463855 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# Pipes the rake coffee:watch growly output to growl
#
while read; do
echo $REPLY
# echo $REPLY | growlnotify -a growlify -t $1;
if which growlnotify >/dev/null
then
if echo $REPLY | grep -i error
then
echo $REPLY | growlnotify -a growlify -p 1 -t $1;
else
echo $REPLY | growlnotify -a growlify -t $1;
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment