summaryrefslogtreecommitdiff
path: root/update-all.in
diff options
context:
space:
mode:
Diffstat (limited to 'update-all.in')
-rw-r--r--update-all.in14
1 files changed, 10 insertions, 4 deletions
diff --git a/update-all.in b/update-all.in
index 2fac8a0..352fd9f 100644
--- a/update-all.in
+++ b/update-all.in
@@ -63,12 +63,18 @@ done
ls "${tmp_dir}" \
| while read -r system; do
- printf 'update-me on %s ("%s") failed\n' \
- "${system}" \
- "${systems["${system}"]}"
+ err=$(
+ cat "${tmp_dir}/${system}"
+ )
+ if [ "${err}" -ne 0 ]; then
+ printf 'update-me on "%s" failed: %s\n' \
+ "${systems["${system}"]}" \
+ "${err}"
+ fi
done
exit $(
- ls "${tmp_dir}" \
+ find "${tmp_dir}" -type f \
+ -exec grep -lxFv '0' {} + \
| wc -l
)