Skip to content

Instantly share code, notes, and snippets.

@garyharan
Created December 26, 2010 22:45
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 garyharan/755695 to your computer and use it in GitHub Desktop.
Save garyharan/755695 to your computer and use it in GitHub Desktop.
rr() {
rake
if [ $? -gt 0 ]; then
say "Some tests failed."
echo "Some tests failed."
else
say "All tests green."
echo "All tests green."
fi
}
@raggi
Copy link

raggi commented Dec 27, 2010

rr() { rake && echo "Fail" && say "Fail" || echo "Pass" && say "Pass" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment