Skip to content

Instantly share code, notes, and snippets.



Last active Dec 19, 2015
What would you like to do?
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
say "success"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment