Added a possibly better way to check for updates on Arch

This commit is contained in:
G2-Games 2022-11-25 01:59:07 -06:00
parent 74a570a107
commit cc7ec85760

View file

@ -119,7 +119,9 @@ updates () {
fi fi
# Check for different Arch things # Check for different Arch things
if command -v yay &> /dev/null; then if command -v checkupdates &> /dev/null; then
arch=$(checkupdates | wc -l)
elif command -v yay &> /dev/null; then
arch=$(yay -Qu 2> /dev/null | wc -l) arch=$(yay -Qu 2> /dev/null | wc -l)
elif command -v paru &> /dev/null; then elif command -v paru &> /dev/null; then
arch=$(paru -Quq 2> /dev/null | wc -l) arch=$(paru -Quq 2> /dev/null | wc -l)