Comment Comment by cjvirtucio you could also just write as if you're writing go:function main { if ! failing_cmd; then log "this fails!" return 1 fi log "this won't log" }mainI only mention this because there are folks who don't like set -e. parent cjvirtucio 3 years ago
function main {
}main
I only mention this because there are folks who don't like set -e.