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-07-05 08:44:45 +0200
committerErich Eckner <git@eckner.net>2018-07-05 08:44:45 +0200
commitf7aa769f739a0e356905beae84a413ed3630dea4 (patch)
treeb74ddbd35a4a17b2a60648a2a349264ba002e2e0
parente62038e7758b27abd3513d077db1fc2faee0dca8 (diff)
lib/mysql-functions: mysql_run_query(): clean outputfile differently
-rwxr-xr-xlib/mysql-functions10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index bd467af..d9cd057 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -88,10 +88,12 @@ mysql_run_query() {
fi
return 2
fi
- (
- trap 'rm "${query_stdout}"' EXIT
- cat "${query_stdout}"
- )
+ # shellcheck disable=SC2094
+ {
+ rm "${query_stdout}"
+ cat
+ } < \
+ "${query_stdout}"
}
# mysql_add_package_source $pkgbase $git_revision $old_git_revision $mod_git_revision $upstream_package_repository $srcinfo_file