mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22:53 -05:00
Added a possibly better way to check for updates on Arch
This commit is contained in:
parent
74a570a107
commit
cc7ec85760
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue