Closed bernhardkaindl closed 9 months ago
I haven't tested it yet, and it might abort early, but I wanted to submit this standard solution.
The set -euxv
is the standard that I put in every script:
-u
causes an error (and with -e
an exit
) on any unset variable, you may either omit the --u
flag, or instead set empty default values for variables which might not be set (which would be better). The benefit of -u
is in the latte way is that whenever there is a variable name issue (usually a typo or somehow a missing input) the script aborts at the location of the unset variable access.Close #115
Additional corrections will be made in the next PR.
closes #114