Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-18 15:21:01 +0100
committerErich Eckner <git@eckner.net>2018-01-18 15:21:01 +0100
commit633a9409ae245b06ad5ae6a9b68853879cad03dc (patch)
treec82de15d771c0441e0bca97c715449125590d6f5 /bin/mysql-functions
parent5fb9f8ad7843e087c974cc1af291b4f494824462 (diff)
put name of creating script into name of temporary directories
Diffstat (limited to 'bin/mysql-functions')
-rwxr-xr-xbin/mysql-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mysql-functions b/bin/mysql-functions
index 1d1169b..14966d2 100755
--- a/bin/mysql-functions
+++ b/bin/mysql-functions
@@ -202,7 +202,7 @@ mysql_generate_package_metadata() {
git_revision="$2"
mod_git_revision="$3"
repository="$4"
- temp_dir=$(mktemp -d)
+ temp_dir=$(mktemp -d 'tmp.mysql-functions.mysql_generate_package_metadata.XXXXXXXXXX' --tmpdir)
trap 'rm -rf --one-file-system "${temp_dir}"' EXIT
if [ $# -eq 1 ]; then
@@ -578,7 +578,7 @@ mysql_generate_package_metadata() {
mysql_sanity_check() {
( # new shell is intentional
- temp_dir=$(mktemp -d)
+ temp_dir=$(mktemp -d 'tmp.mysql-functions.mysql_sanity_check.XXXXXXXXXX' --tmpdir)
trap 'rm -rf --one-file-system "${temp_dir}"' EXIT
for dir in $(ls_master_mirror 'i686'); do