From d272622bb01e7b30fb9799a2ccd6fadeabad821d Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Tue, 19 Mar 2019 12:50:28 +0100 Subject: [PATCH] Exit when retrieving updates fails. --- plugins/other/pacman_pending_updates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/other/pacman_pending_updates b/plugins/other/pacman_pending_updates index c5e66b93..7a327995 100755 --- a/plugins/other/pacman_pending_updates +++ b/plugins/other/pacman_pending_updates @@ -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,)"