Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-29 14:38:51 +0200
committerErich Eckner <git@eckner.net>2018-03-29 14:38:51 +0200
commitf4b3e16018bbf3f610bf7e8717257edaa33ea658 (patch)
treee3ae1107d939af2c245d9e9bf7cfc31d8c81aaeb /lib/mysql-functions
parent0f4ef84abc2fc6878a0ea055f8ee9a67afc45e37 (diff)
lib/mysql-functions: mysql_run_query: whoops, we should not delete the output before printing it
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index f469a2e..103dfe0 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -49,7 +49,7 @@ mysql_run_query() {
< "${query_stdin}" \
> "${query_stdout}" \
2>> "${query_stderr}" \
- && rm "${query_stdin}" "${query_stderr}" "${query_stdout}"
+ && rm "${query_stdin}" "${query_stderr}"
if ! [ -f "${query_stdin}" ]; then
# success!
break
@@ -68,6 +68,7 @@ mysql_run_query() {
return 2
fi
cat "${query_stdout}"
+ rm "${query_stdout}"
}
# mysql_add_package_source $pkgbase $git_revision $mod_git_revision $upstream_package_repository