Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-03 10:00:05 +0200
committerErich Eckner <git@eckner.net>2018-09-03 10:00:05 +0200
commit5aa69c7445a15c14044ebdfa6a5b21808cbe22bd (patch)
tree798b93d609f4bcc50ebcbd72917bbc6e59d4f28a
parentbeda398f5affe2db5491093908bbdedde4535fe7 (diff)
lib/mysql-functions: change naming scheme of mysql query temp files
-rwxr-xr-xlib/mysql-functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 5844d5e..e4224ec 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -44,9 +44,9 @@ mysql_run_query() {
fi
# we save the query in a file and delete that file if the query succeeded
- query_stdin=$(mktemp "${work_dir}/tmp.mysql-functions.${file_name_extra}query.stdin.$(date +'%Y-%m-%dT%T').XXXXXX")
- query_stdout=$(mktemp "${work_dir}/tmp.mysql-functions.${file_name_extra}query.stdout.$(date +'%Y-%m-%dT%T').XXXXXX")
- query_stderr=$(mktemp "${work_dir}/tmp.mysql-functions.${file_name_extra}query.stderr.$(date +'%Y-%m-%dT%T').XXXXXX")
+ query_stdin=$(mktemp "${work_dir}/tmp.mysql-functions.${file_name_extra}query.$(date +'%Y-%m-%dT%T').XXXXXX.stdin")
+ query_stdout="${query_stdin%.stdin}.stdout"
+ query_stdout="${query_stdin%.stdin}.stderr"
cat > "${query_stdin}"
for _ in {1..10}; do
${mysql_command} -N --raw --batch "$@" \