summaryrefslogtreecommitdiff
path: root/bin/repo-copy
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-24 10:22:08 +0200
committerErich Eckner <git@eckner.net>2018-09-24 10:22:08 +0200
commitc0973425861ac911a887d0865905571673ce41de (patch)
tree6cb204c673d882df3e8645b6effcb721d842115d /bin/repo-copy
parent2822716112435d983906bd1dbc28ad8ca2e02728 (diff)
downloadbuilder-c0973425861ac911a887d0865905571673ce41de.tar.xz
unify mktemp definitions to use --tmpdir if appropriate
Diffstat (limited to 'bin/repo-copy')
-rwxr-xr-xbin/repo-copy2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/repo-copy b/bin/repo-copy
index 803cae3..ee3ac2e 100755
--- a/bin/repo-copy
+++ b/bin/repo-copy
@@ -28,7 +28,7 @@ to_repo="$2"
shift
shift
-tmp_dir=$(mktemp -d "${TMPDIR:-/tmp}/repo-tools.XXXXXXXXXX")
+tmp_dir=$(mktemp -d 'repo-tools.XXXXXXXXXX' --tmpdir)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
# extract the databases