forked from lix-project/lix
Use plain mktemp
This fixes the case where $TMPDIR doesn't end in a slash.
This commit is contained in:
parent
7aa36ae796
commit
6547dcde2a
|
@ -349,7 +349,7 @@ _sudo() {
|
|||
}
|
||||
|
||||
|
||||
readonly SCRATCH=$(mktemp -d "${TMPDIR:-/tmp/}tmp.XXXXXXXXXX")
|
||||
readonly SCRATCH=$(mktemp -d)
|
||||
finish_cleanup() {
|
||||
rm -rf "$SCRATCH"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue