Skip to content

Instantly share code, notes, and snippets.

@danomatika
Last active December 19, 2015 06:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danomatika/5910854 to your computer and use it in GitHub Desktop.
Save danomatika/5910854 to your computer and use it in GitHub Desktop.
small script for Mac OSX which speaks the result of a given command, useful for knowing when a long build is finished
#! /bin/bash
#
# say-result: speaks the result of a given command
# put this in a location that is added to the shell bin path
#
# usage: say-result [command & options]
#
# examples:
# say-result make
# say-result false
# etc ...
$@
if [ $? -ne 0 ] ; then
say "failed"
exit 1
fi
say "success"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment