dots/configs/home/config/polybar/updates-aur.sh

18 lines
446 B
Bash
Raw Normal View History

2022-04-03 01:11:04 +02:00
#!/bin/sh
if ! updates=$(yay -Qum 2> /dev/null | wc -l); then
# if ! updates=$(paru -Qum 2> /dev/null | wc -l); then
# if ! updates=$(cower -u 2> /dev/null | wc -l); then
# if ! updates=$(trizen -Su --aur --quiet | wc -l); then
# if ! updates=$(pikaur -Qua 2> /dev/null | wc -l); then
# if ! updates=$(rua upgrade --printonly 2> /dev/null | wc -l); then
updates=0
fi
if [ "$updates" -gt 0 ]; then
echo "# $updates"
else
echo ""
fi