summaryrefslogtreecommitdiff
path: root/indra/viewer_components
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2013-01-11 15:58:50 -0500
committerNat Goodspeed <nat@lindenlab.com>2013-01-11 15:58:50 -0500
commit22db60ed0dfd606ab8f8d49141446442a4a72a48 (patch)
tree517ce5a07c8b1c50250d6276749bae87e50ad79d /indra/viewer_components
parent9e755ee98d6851154874a735c559c80509d7501d (diff)
MAINT-1481: use 'mktemp -d' to generate tempdir.
Responding to Lex's code-review comments.
Diffstat (limited to 'indra/viewer_components')
-rw-r--r--indra/viewer_components/updater/scripts/linux/update_install2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/viewer_components/updater/scripts/linux/update_install b/indra/viewer_components/updater/scripts/linux/update_install
index 0f624c4dee..a9df9042fd 100644
--- a/indra/viewer_components/updater/scripts/linux/update_install
+++ b/indra/viewer_components/updater/scripts/linux/update_install
@@ -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"