From 9e5abca8534a8978b53b522920c64739dcf5acb5 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 11 May 2020 12:30:29 +0200 Subject: [PATCH] [polybar] Remove bc dependency for package module Removed dependency on bc to do simple addition. --- polybar/.config/polybar/scripts/poly-archupdates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polybar/.config/polybar/scripts/poly-archupdates b/polybar/.config/polybar/scripts/poly-archupdates index 475a4ca..c54bd69 100755 --- a/polybar/.config/polybar/scripts/poly-archupdates +++ b/polybar/.config/polybar/scripts/poly-archupdates @@ -5,7 +5,7 @@ # returns empty string when 0 packages are available, so # that polybar simply displays nothing. # -# dependendies: yay, bc, (pacman-contrib optional) +# dependendies: yay, (pacman-contrib optional) # prefer checkupdates since it allows checking w/o partial upgrade if command -v "checkupdates" >/dev/null; then @@ -21,7 +21,7 @@ updates_aur="$(yay -Qum 2>/dev/null | wc -l)" # if ! updates_aur=$(pikaur -Qua 2> /dev/null | wc -l); then # if ! updates_aur=$(rua upgrade --printonly 2> /dev/null | wc -l); then -updates="$(echo "$updates_repo + $updates_aur" | bc)" +updates="$((updates_repo + updates_aur))" if [ "$updates" -gt 0 ]; then echo "$updates"