Skip to content

Instantly share code, notes, and snippets.

@dushmis
Last active August 29, 2015 13:55
Show Gist options
  • Save dushmis/8694264 to your computer and use it in GitHub Desktop.
Save dushmis/8694264 to your computer and use it in GitHub Desktop.
testing in bash
must() {
if ! "$@"; then
echo "$@" failed >&2
exit 1
fi
}
not() {
if "$@"; then
false
else
true
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment