Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 "$@" \