summaryrefslogtreecommitdiff
path: root/update-all.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-11-08 10:25:32 +0100
committerErich Eckner <git@eckner.net>2019-11-08 10:25:32 +0100
commit589466d672ee09a1ef5bcd2a2e34d7a7ea7f7ef6 (patch)
tree95def30bad1532558d25bca17a692938350534ca /update-all.in
parent48d98d08220a4b556dda97234c9f2deca30c7bb7 (diff)
downloadupdate-all-589466d672ee09a1ef5bcd2a2e34d7a7ea7f7ef6.tar.xz
update-all.in: only non-"0" content is a true error
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
)