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