aboutsummaryrefslogtreecommitdiff
path: root/scripts/install-multi-user.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-08-17 21:41:19 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-08-17 21:41:19 +0200
commit6547dcde2a37179f98cc9a8702bc15a2fd1e6a4b (patch)
treefb0dd428a1ea3591d61d719e28d41bd3a3cd05bd /scripts/install-multi-user.sh
parent7aa36ae79673d89e120a97a3c6fd9fbb46ea9da1 (diff)
Use plain mktemp
This fixes the case where $TMPDIR doesn't end in a slash.
Diffstat (limited to 'scripts/install-multi-user.sh')
-rw-r--r--scripts/install-multi-user.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh
index a9f3e74dc..7c8e159b5 100644
--- a/scripts/install-multi-user.sh
+++ b/scripts/install-multi-user.sh
@@ -349,7 +349,7 @@ _sudo() {
}
-readonly SCRATCH=$(mktemp -d "${TMPDIR:-/tmp/}tmp.XXXXXXXXXX")
+readonly SCRATCH=$(mktemp -d)
finish_cleanup() {
rm -rf "$SCRATCH"
}