summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:18:36 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-08 21:19:01 -0500
commit1bcc49058febc7e2723c455879da6ff3b9ca6576 (patch)
tree55d8df38046c29fec3372c5f4f2ebffac1ddf452 /db-functions
parent3537841a9287ea1c7871545ffebb855561f7c1e0 (diff)
Use `mktemp -t` to respect $TMPDIR
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/db-functions b/db-functions
index 458a370..f56ca19 100644
--- a/db-functions
+++ b/db-functions
@@ -16,7 +16,7 @@ restore_umask () {
}
# set up general environment
-WORKDIR=$(mktemp -d /tmp/$(basename $0).XXXXXXXXXX)
+WORKDIR=$(mktemp -dt "$(basename $0).XXXXXXXXXX")
LOCKS=()
# check if messages are to be printed using color