summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-11-03 12:33:53 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-11-03 12:33:53 -0500
commit7dbe6410f501a748759866cab89253c799001c57 (patch)
treef9989eff367f41bb406690c249d7c88a60ab4fd7 /src
parent12a139ee5fb29a727c330fa61372f3d8d5fe7ab7 (diff)
treepkg: obey $TMPDIR
Diffstat (limited to 'src')
-rwxr-xr-xsrc/treepkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/treepkg b/src/treepkg
index f7cc338..6dc9dda 100755
--- a/src/treepkg
+++ b/src/treepkg
@@ -103,7 +103,7 @@ done
pkgbase="${pkgbase:-${pkgname[0]}}"
# Get or set the work dir
-BUILDDIR="${1:-$(mktemp -d /tmp/${pkgbase}-treepkg-XXXx)}"
+BUILDDIR="${1:-$(mktemp --tmpdir -d ${pkgbase}-treepkg.XXXXXXXXXX)}"
BUILDORDER="${BUILDDIR}/BUILDORDER"
DEPTH=${2:-0}
NEXTDEPTH=$((${DEPTH} + 1))