Skip to content

Commit

Permalink
Merge pull request #976 from bertptrs/plugin-pacman
Browse files Browse the repository at this point in the history
* Exit when retrieving updates fails.
* Properly report unknowns
  • Loading branch information
sumpfralle committed Jun 10, 2019
2 parents dd94da3 + 6cb5c9e commit 9084e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/other/pacman_pending_updates
Expand Up @@ -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
Expand Down Expand Up @@ -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,)"
Expand Down

0 comments on commit 9084e48

Please sign in to comment.