Open cjekal opened 3 years ago
https://sipb.mit.edu/doc/safe-shell/
set -e: exit the whole script if a line fails instead of proceeding to the next line set -u: variables that aren't set but are used fail the script shopt -s failglob: fail if globs don't get expanded
set -e
set -u
shopt -s failglob
https://sipb.mit.edu/doc/safe-shell/
set -e
: exit the whole script if a line fails instead of proceeding to the next lineset -u
: variables that aren't set but are used fail the scriptshopt -s failglob
: fail if globs don't get expanded