Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/sanity-check
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sanity-check')
-rwxr-xr-xbin/sanity-check13
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/sanity-check b/bin/sanity-check
index 0445183..3c30cbb 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -449,11 +449,14 @@ while [ $# -gt 0 ]; do
errors=$(
find "${work_dir}" -mindepth 1 -maxdepth 1 \
- -name 'tmp.mysql-functions.query.*' \
- -exec sleep 5 \; \
- -exec test -s {} \; \
- -printf '%f\n' \
- -execdir sed 's/^/>> /' '{}' \;
+ -name 'tmp.mysql-functions.query.*' | \
+ parallel -j0 \
+ 'bash -c "
+ sleep 5
+ test -s {} && '\
+ 'printf '"'"'%s:\n'"'"' {} && '\
+ 'sed '"'"'s/^/>> /'"'"' {}
+ "'
)
if [ -n "${errors}" ]; then
if [ ${silence} -le 1 ]; then