index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/sanity-check | 13 |
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 |