1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Exit when retrieving updates fails.

This commit is contained in:
Bert Peters 2019-03-19 12:50:28 +01:00
parent 914180fe54
commit d272622bb0

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)" || exit
if [ -n "$updates" ]; then
echo "updates.value $(echo "$updates" | wc -l)"
echo "updates.extinfo $(echo "$updates" | paste -s -d,)"