Bash error handling

From wikinotes
Revision as of 22:37, 11 May 2018 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

exitcodes and returncodes

fail on error

By default, bash continues running when errors occur. You can change this behaviour by adding the following line to your bash script (at the top).

set -e

debugging bash scripts