Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib/bacman.sh.in
diff options
context:
space:
mode:
authorAlastair Hughes <hobbitalastair@gmail.com>2015-12-31 13:10:21 +1300
committerAllan McRae <allan@archlinux.org>2016-01-04 13:27:08 +1000
commit6aee32102f667a18b050e934759585260cae9ae6 (patch)
tree7a60178b2c3fc4575335b2cba5f7b1c81d695e88 /contrib/bacman.sh.in
parent774c7eb24dde6d72d7a9d9e7d6ae248a5a35f480 (diff)
Replace mktemp's --tmpdir option with shell code.
bacman and updpkgsums used GNU mktemp's --tmpdir option, which is not supported by some other implementations (including busybox). Replace that with shell code. Signed-off-by: Alastair Hughes <hobbitalastair@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib/bacman.sh.in')
-rw-r--r--contrib/bacman.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/bacman.sh.in b/contrib/bacman.sh.in
index fcee6a0d..b4bbbbb2 100644
--- a/contrib/bacman.sh.in
+++ b/contrib/bacman.sh.in
@@ -147,7 +147,7 @@ fi
# Begin
#
msg "Package: ${pkg_namver}"
-work_dir=$(mktemp -d --tmpdir bacman.XXXXXXXXXX)
+work_dir=$(mktemp -d "${TMPDIR:-/tmp}/bacman.XXXXXXXXXX")
cd "$work_dir" || exit 1
#