diff options
author | Erich Eckner <git@eckner.net> | 2018-07-05 08:44:45 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-07-05 08:44:45 +0200 |
commit | f7aa769f739a0e356905beae84a413ed3630dea4 (patch) | |
tree | b74ddbd35a4a17b2a60648a2a349264ba002e2e0 /lib | |
parent | e62038e7758b27abd3513d077db1fc2faee0dca8 (diff) | |
download | builder-f7aa769f739a0e356905beae84a413ed3630dea4.tar.xz |
lib/mysql-functions: mysql_run_query(): clean outputfile differently
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/mysql-functions | 10 |
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 |