summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-04-29 09:18:52 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-04-29 09:18:52 +0200
commit180e655748dc6fd8c62ca7fa269e4f614ac1e8ca (patch)
treec6b0e1a02165591c45c7961398340725666f644b /db-functions
parent31c1ebb69681e9b9b9d17795210f6bbd24ee2381 (diff)
Respect TMPDIR config when creating the working directory
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 1b77035..c992fe5 100644
--- a/db-functions
+++ b/db-functions
@@ -16,7 +16,7 @@ restore_umask () {
}
# set up general environment
-WORKDIR=$(mktemp -d /tmp/${0##*/}.XXXXXXXXXX)
+WORKDIR=$(mktemp -d "${TMPDIR}/${0##*/}.XXXXXXXXXX")
LOCKS=()
# check if messages are to be printed using color