Use --tmpdir with mktemp

Pass --tmpdir to mktemp so the new temporary directory is placed
within $TMPDIR, or falling back to /tmp. This way dib-run-parts can
use whatever the temporary directory is, instead of using an hardcoded
/tmp.

Change-Id: I6b55e3c6c1fe22108ea555d3766e0323695bd96d
This commit is contained in:
Pino Toscano 2014-07-25 11:01:32 +02:00
parent 7c03ab48a1
commit 5327bf9a08
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ if [ "$show_list" == "1" ] ; then
exit 0
fi
PROFILE_DIR=$(mktemp -d /tmp/profiledir.XXXXXX)
PROFILE_DIR=$(mktemp -d --tmpdir profiledir.XXXXXX)
ENVIRONMENT_D_DIR=$target_dir/../environment.d