summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2013-06-08 15:03:19 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-06-10 13:19:41 +0200
commitd35a034a99d4bd6053dfe4bd9b1e2169b951430e (patch)
treea6fdf5088bf18a368a992c1e7202b884af23f95c
parent05aff527f53411535a2a628cfa98317af94a6ccb (diff)
downloadptxdist-d35a034a99d4bd6053dfe4bd9b1e2169b951430e.tar.gz
ptxdist-d35a034a99d4bd6053dfe4bd9b1e2169b951430e.tar.xz
ptxdist: use $TMPDIR for PTXDIST_TEMPDIR if set
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rwxr-xr-xbin/ptxdist4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 181ff0ef5..9e1b88c3c 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -2017,7 +2017,7 @@ setup_env() {
unset $(/usr/bin/env | \
sed -n -e "s/^\([^=[:space:]]\+\)=.*$/\1/p" | \
- egrep -v "^(PTXDIST_PTXRC|PTX_AUTOBUILD_DESTDIR|CCACHE_.*|PWD|HOME|USER|PATH|TERM|COLUMNS|LINES|DISPLAY|http_proxy|https_proxy|ftp_proxy|no_proxy${whitelist})$" )
+ egrep -v "^(PTXDIST_PTXRC|PTX_AUTOBUILD_DESTDIR|CCACHE_.*|PWD|HOME|USER|PATH|TERM|COLUMNS|LINES|DISPLAY|TMPDIR|http_proxy|https_proxy|ftp_proxy|no_proxy${whitelist})$" )
######## the environment is clean now ########
@@ -2090,7 +2090,7 @@ setup_libs_early() {
fi
done
- PTXDIST_TEMPDIR="$(mktemp -d /tmp/ptxdist.XXXXXX)"
+ PTXDIST_TEMPDIR="$(mktemp -t -d ptxdist.XXXXXX)"
if [ ${?} -ne 0 ]; then
echo
echo "${PTXDIST_LOG_PROMPT}error: unable to create tempdir"