mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-24 00:51:39 +00:00
16 lines
390 B
Bash
16 lines
390 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if ! updates=$(yay -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
|