diff --git a/seqTemplate.sh b/seqTemplate.sh index 1b471d8..197fc31 100755 --- a/seqTemplate.sh +++ b/seqTemplate.sh @@ -28,6 +28,10 @@ seq_config() { ## Apt cmdline option to suppress user interaction interactive || sq_aptOpt="-y" + ## Disable error checks if external scripts are used + ## e.g. error on unbound variables + #disableErrorCheck + ## Return of non zero value will abort the sequence return 0 } diff --git a/sequencer.sh b/sequencer.sh index 7f7633a..ccbf9e3 100755 --- a/sequencer.sh +++ b/sequencer.sh @@ -3,11 +3,12 @@ # shellcheck disable=SC1090 # follow non constant source enableErrorCheck() { -# Do not allow use of undefined vars. Use ${VAR:-} to use an undefined VAR + # Do not allow use of unbound variables. + # Use ${VAR:-} if possibly unbound set -o nounset } disableErrorCheck() { -# Do not allow use of undefined vars. Use ${VAR:-} to use an undefined VAR + # Do allow the use of unbound vars. set +o nounset }