From 13b620a224212aafb555a2d7331780bd8b8331dd Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Thu, 2 Jun 2022 13:05:14 +0200 Subject: [PATCH] sequencer - updating documentation --- seqTemplate.sh | 4 ++++ sequencer.sh | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 }