Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/mysql-functions6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 1a60802..bd467af 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -88,8 +88,10 @@ mysql_run_query() {
fi
return 2
fi
- cat "${query_stdout}"
- rm "${query_stdout}"
+ (
+ trap 'rm "${query_stdout}"' EXIT
+ cat "${query_stdout}"
+ )
}
# mysql_add_package_source $pkgbase $git_revision $old_git_revision $mod_git_revision $upstream_package_repository $srcinfo_file