Use plain mktemp

This fixes the case where $TMPDIR doesn't end in a slash.
This commit is contained in:
Eelco Dolstra 2022-08-17 21:41:19 +02:00
parent 7aa36ae796
commit 6547dcde2a

View file

@ -349,7 +349,7 @@ _sudo() {
}
readonly SCRATCH=$(mktemp -d "${TMPDIR:-/tmp/}tmp.XXXXXXXXXX")
readonly SCRATCH=$(mktemp -d)
finish_cleanup() {
rm -rf "$SCRATCH"
}