mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Use plain mktemp
This fixes the case where $TMPDIR doesn't end in a slash.
This commit is contained in:
parent
7aa36ae796
commit
6547dcde2a
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ _sudo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
readonly SCRATCH=$(mktemp -d "${TMPDIR:-/tmp/}tmp.XXXXXXXXXX")
|
readonly SCRATCH=$(mktemp -d)
|
||||||
finish_cleanup() {
|
finish_cleanup() {
|
||||||
rm -rf "$SCRATCH"
|
rm -rf "$SCRATCH"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue