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"