Last active
December 19, 2015 06:19
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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