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:
parent
914180fe54
commit
d272622bb0
1 changed files with 2 additions and 2 deletions
|
@ -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,)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue