1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 10:28:36 +00:00

Merge pull request #976 from bertptrs/plugin-pacman

* Exit when retrieving updates fails.
* Properly report unknowns
This commit is contained in:
Lars Kruse 2019-06-10 17:51:03 +02:00 committed by GitHub
commit 9084e48223
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ This plugin will draw one line: the number of updates pending.
=head1 VERSION
1.1.0
1.1.1
=head1 AUTHOR
@ -54,7 +54,7 @@ EOM
;;
*)
updates="$(checkupdates)"
updates="$(checkupdates)" || echo "updates.value U" && exit
if [ -n "$updates" ]; then
echo "updates.value $(echo "$updates" | wc -l)"
echo "updates.extinfo $(echo "$updates" | paste -s -d,)"