summaryrefslogtreecommitdiff
path: root/bin/repo-copy
diff options
context:
space:
mode:
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