Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
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
parent2822716112435d983906bd1dbc28ad8ca2e02728 (diff)
unify mktemp definitions to use --tmpdir if appropriate
Diffstat (limited to 'bin')
-rwxr-xr-xbin/harvest-commit-times2
-rwxr-xr-xbin/modify-package-state2
-rwxr-xr-xbin/repo-copy2
3 files changed, 3 insertions, 3 deletions
diff --git a/bin/harvest-commit-times b/bin/harvest-commit-times
index 91c96ba..1f8c2e0 100755
--- a/bin/harvest-commit-times
+++ b/bin/harvest-commit-times
@@ -58,7 +58,7 @@ if ! verbose_flock ${block_flag} 9; then
exit
fi
-tmp_file=$(mktemp "tmp.harvest-commit-times.XXXXXXXXXX")
+tmp_file=$(mktemp 'tmp.harvest-commit-times.XXXXXXXXXX' --tmpdir)
trap 'rm "${tmp_file}"' EXIT
# shellcheck disable=SC2016
diff --git a/bin/modify-package-state b/bin/modify-package-state
index b4425ec..25b70f2 100755
--- a/bin/modify-package-state
+++ b/bin/modify-package-state
@@ -115,7 +115,7 @@ if ${report}; then
cat "${output_file}" > "${input_file}"
rm -f "${output_file}"
}
- output_file=$(mktemp 'tmp.modify-package-state.XXXXXXXXXX')
+ output_file=$(mktemp 'tmp.modify-package-state.XXXXXXXXXX' --tmpdir)
trap 'move_output' EXIT
else
output_file='/dev/null'
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