From c0973425861ac911a887d0865905571673ce41de Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 24 Sep 2018 10:22:08 +0200 Subject: unify mktemp definitions to use --tmpdir if appropriate --- bin/repo-copy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/repo-copy') 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 -- cgit v1.2.3-70-g09d2