Skip to content

Instantly share code, notes, and snippets.

@vincentchu
Created October 2, 2012 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentchu/3821550 to your computer and use it in GitHub Desktop.
Save vincentchu/3821550 to your computer and use it in GitHub Desktop.
#!/bin/bash
$@
CODE=$?
if [ "$CODE" = "0" ]
then
growlnotify --image /Users/vince/bin/images/doom_succ.png --message "$1" Command Succeeded!
else
growlnotify --image /Users/vince/bin/images/doom_fail.png --message "$1" Command Failed!
fi
exit $CODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment