From 6aee32102f667a18b050e934759585260cae9ae6 Mon Sep 17 00:00:00 2001 From: Alastair Hughes Date: Thu, 31 Dec 2015 13:10:21 +1300 Subject: 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 Signed-off-by: Allan McRae --- contrib/bacman.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/bacman.sh.in') 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 # -- cgit v1.2.3-24-g4f1b