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:
Diffstat (limited to 'lib/mysql-functions')
-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