diff options
author | Erich Eckner <git@eckner.net> | 2019-11-08 10:25:32 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-11-08 10:25:32 +0100 |
commit | 589466d672ee09a1ef5bcd2a2e34d7a7ea7f7ef6 (patch) | |
tree | 95def30bad1532558d25bca17a692938350534ca | |
parent | 48d98d08220a4b556dda97234c9f2deca30c7bb7 (diff) | |
download | update-all-589466d672ee09a1ef5bcd2a2e34d7a7ea7f7ef6.tar.xz |
update-all.in: only non-"0" content is a true error
-rw-r--r-- | update-all.in | 14 |
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 ) |