common setup hooks: set -u robustness

Explicitly handle `dont*` and friends not being defined.
This commit is contained in:
John Ericson
2019-11-01 14:44:43 -04:00
parent d901b961a9
commit 43a98868ae
7 changed files with 10 additions and 10 deletions
@@ -7,7 +7,7 @@
# the moment that would produce too many spurious errors (e.g. debug
# info or assertion messages that refer to $TMPDIR).
fixupOutputHooks+=('if [ -z "$noAuditTmpdir" -a -e "$prefix" ]; then auditTmpdir "$prefix"; fi')
fixupOutputHooks+=('if [[ -z "${noAuditTmpdir-}" && -e "$prefix" ]]; then auditTmpdir "$prefix"; fi')
auditTmpdir() {
local dir="$1"