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

Responding to Lex's code-review comments.
meow-7.2.2
Nat Goodspeed 2013-01-11 15:58:50 -05:00
parent 9e755ee98d
commit 22db60ed0d
1 changed files with 1 additions and 1 deletions

View File

@ -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"