From f4b3e16018bbf3f610bf7e8717257edaa33ea658 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 29 Mar 2018 14:38:51 +0200 Subject: lib/mysql-functions: mysql_run_query: whoops, we should not delete the output before printing it --- lib/mysql-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2