index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | lib/mysql-functions | 4 |
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 |