index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Christian Heusel <christian@heusel.eu> | 2024-06-15 14:23:21 +0200 |
---|---|---|
committer | Christian Heusel <christian@heusel.eu> | 2024-06-15 14:55:18 +0200 |
commit | 1df0979da6bbe5de8549693d12cb3e547bc6d94a (patch) | |
tree | 09769ebb64ed7164854a91b4dc5949bae01889a7 | |
parent | c1a3ed224b8d735fec0456233b68c5a583299d79 (diff) |
-rw-r--r-- | src/lib/common.sh | 2 |
diff --git a/src/lib/common.sh b/src/lib/common.sh index b087bb1..5416eaf 100644 --- a/src/lib/common.sh +++ b/src/lib/common.sh @@ -120,6 +120,8 @@ print_workdir_error() { } _setup_workdir=false +# Ensure that there is no outside value for WORKDIR leaking in +unset WORKDIR setup_workdir() { [[ -z ${WORKDIR:-} ]] && WORKDIR=$(mktemp -d --tmpdir "${0##*/}.XXXXXXXXXX") _setup_workdir=true |