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