Skip to content

Instantly share code, notes, and snippets.

@garyharan
Created December 26, 2010 22:45
Show Gist options
  • 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