Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 0e4b952..8101e0c 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -67,8 +67,8 @@ mysql_run_query() {
"${query_stdin}" \
"${query_stdout}" \
"${query_stderr}"; do
- cp "${file}" "${webserver_directory}/mysql-queries/${file}.txt"
- chmod go+r "${webserver_directory}/mysql-queries/${file}.txt"
+ cp "${file}" "${webserver_directory}/mysql-queries/${file##*/}.txt"
+ chmod go+r "${webserver_directory}/mysql-queries/${file##*/}.txt"
done
fi
if [ -z "${file_name_extra}" ]; then