Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/mysql-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 1e609f5..1eca658 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -72,8 +72,12 @@ mysql_run_query() {
T
p
' "${query_stdin}" | \
+ sponge | \
cat -n | \
while read -r number file; do
+ sed -i '
+ s@"'"$(str_to_regex "${file}")"'"@"'"${query_stdin%.stdin}.infile.${number}"'"@g
+ ' "${query_stdin}"
cp "${file}" "${query_stdin%.stdin}.infile.${number}"
printf ' %s' "${query_stdin%.stdin}.infile.${number}"
done