Instantly share code, notes, and snippets.
Thanks! This is really great.
Please excuse my ignorance about bash scripting, but assuming that my test run is another .sh file, how do I run that and check the pass condition?
./path/to/script can be an absolute path or relative to the current working directory (pwd). $? holds the exit code of the last executed command. So assuming your script exits with a non-zero exit code on failure, the rest will just work.