sequencer - updating documentation

This commit is contained in:
2022-06-02 13:05:14 +02:00
parent 9a0860bb61
commit 13b620a224
2 changed files with 7 additions and 2 deletions

View File

@@ -28,6 +28,10 @@ seq_config() {
## Apt cmdline option to suppress user interaction ## Apt cmdline option to suppress user interaction
interactive || sq_aptOpt="-y" 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 of non zero value will abort the sequence
return 0 return 0
} }

View File

@@ -3,11 +3,12 @@
# shellcheck disable=SC1090 # follow non constant source # shellcheck disable=SC1090 # follow non constant source
enableErrorCheck() { 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 set -o nounset
} }
disableErrorCheck() { 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 set +o nounset
} }