index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-10-02 14:33:05 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-02 14:34:43 +0200 |
commit | 16f58c74b0e03164153c802e44c9fc034abaa33d (patch) | |
tree | 3fc0cedc68e26a361fcde4195cae9bb2f1a57c27 | |
parent | 31e615a2a81f56b99ec14fc7ca6cb304a3a4813e (diff) |
-rwxr-xr-x | lib/mysql-functions | 4 |
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 |