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:
parent
7c03ab48a1
commit
5327bf9a08
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue