diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-03-14 01:22:43 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-03-14 01:22:43 -0400 |
commit | 7c190750595810f909bc06d6ad34b9b42b4dc7a7 (patch) | |
tree | 42b84e4367414bc1dd1cd71116fe33e8467b8f37 /modules/munin | |
parent | 3179812dc301068c1e0920f1eced08f8f71dd118 (diff) | |
download | puppet-tozt-7c190750595810f909bc06d6ad34b9b42b4dc7a7.tar.gz puppet-tozt-7c190750595810f909bc06d6ad34b9b42b4dc7a7.zip |
fix package_updates when there are no updates
Diffstat (limited to 'modules/munin')
-rwxr-xr-x | modules/munin/files/plugins/package_updates | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/munin/files/plugins/package_updates b/modules/munin/files/plugins/package_updates index 221677b..9ddc924 100755 --- a/modules/munin/files/plugins/package_updates +++ b/modules/munin/files/plugins/package_updates @@ -4,7 +4,7 @@ set -o pipefail run() { yaourt -Sya > /dev/null - update_count="$(yaourt -Qua | wc -l)" + update_count="$( (yaourt -Qua || true) | wc -l)" echo "updates.value $update_count" } |