Re:When Bash scripts bite
by nilliams on Friday May 12, 2017 @05:23AM
(#14322492)
True for async code, but if you use something like ShellJS [1] (which would be an easy way to rewrite a bash script that was getting out of hand), all commands are synchronous, so error handling is just try/catch.
[1] https://www.npmjs.com/package/shelljs