summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sanity-check13
1 files changed, 10 insertions, 3 deletions
diff --git a/bin/sanity-check b/bin/sanity-check
index 2da1605..0a81343 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -414,9 +414,16 @@ while [ $# -gt 0 ]; do
# hopefully, this gets rid of false positives :-)
sleep 1
- if find "${work_dir}" -mindepth 1 -maxdepth 1 -name 'tmp.mysql-functions.query.*' | \
- grep '\S' >> \
- "${tmp_dir}/messages"; then
+ errors=$(
+ find "${work_dir}" -mindepth 1 -maxdepth 1 \
+ -name 'tmp.mysql-functions.query.*'
+ )
+ if [ -n "${errors}" ]; then
+ if [ ${silence} -le 1 ]; then
+ printf '\nThere are pending mysql queries:\n%s\n' \
+ "${errors}"
+ fi >> \
+ "${tmp_dir}/messages"
i_am_insane
fi