sequencer - updating documentation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user