index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-09-03 10:00:05 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-03 10:00:05 +0200 |
commit | 5aa69c7445a15c14044ebdfa6a5b21808cbe22bd (patch) | |
tree | 798b93d609f4bcc50ebcbd72917bbc6e59d4f28a | |
parent | beda398f5affe2db5491093908bbdedde4535fe7 (diff) |
-rwxr-xr-x | lib/mysql-functions | 6 |
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 "$@" \ |