summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-18 15:14:54 +0200
committerErich Eckner <git@eckner.net>2018-04-18 15:14:54 +0200
commit97e0e4a78e314b0eea8099768de4c75760935b1e (patch)
tree1ba50b2a72b63df6edbdc60a6abc944601301fa9 /lib/mysql-functions
parentc93333ae8039d2dbfb9181e036129a6dec9b7556 (diff)
downloadbuilder-97e0e4a78e314b0eea8099768de4c75760935b1e.tar.xz
lib/mysql-functions: only go insane, when query was actually important
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 2ea83fa..66b1512 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -70,8 +70,10 @@ mysql_run_query() {
find "${webserver_directory}/mysql-queries/" -type f \
-exec chmod go+r {} \;
fi
- echo 'A mysql query failed.' > \
- "${work_dir}/build-master-sanity"
+ if [ -z "${file_name_extra}" ]; then
+ echo 'A mysql query failed.' > \
+ "${work_dir}/build-master-sanity"
+ fi
return 2
fi
cat "${query_stdout}"