Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-17 15:30:40 +0200
committerErich Eckner <git@eckner.net>2018-04-17 15:30:40 +0200
commit003203b0c3e6024c16d90c9ecb9eee97cdc1449c (patch)
treedee1d7a525cdd1a0e6b579652ac80e1c941e6e11
parent9b0c3a597a6421b318e34b46de2b991c84d22f2a (diff)
lib/mysql-functions: copy failed queries into webserver directory
-rwxr-xr-xlib/mysql-functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 048f163..65c186f 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -62,6 +62,7 @@ mysql_run_query() {
printf '\001ACTION failed to execute a mysql query - can you have a look at "%s"?.\001\n' \
"${query_stdin##*/}" \
| irc_say
+ cp "${query_stdin}" "${webserver_directory}/mysql-queries/"
fi
echo 'A mysql query failed.' > \
"${work_dir}/build-master-sanity"