Skip to content
Snippets Groups Projects
Commit 22db60ed authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

MAINT-1481: use 'mktemp -d' to generate tempdir.

Responding to Lex's code-review comments.
parent 9e755ee9
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ status 'Installing Second Life...'
# different filesystem than INSTALL_DIR. One is tempted to create tempdir on a
# path derived from `dirname INSTALL_DIR` -- but it seems modern 'mv' can
# handle moving across filesystems??
tempdir="/tmp/$(basename "$0").$$"
tempdir="$(mktemp -d)"
tempinstall="$tempdir/install"
# capture the actual error message, if any
err="$(mkdir -p "$tempinstall" 2>&1)" || fail "$err"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment