From cc7ec8576077bde2e0c077bb575241d9b96eee50 Mon Sep 17 00:00:00 2001 From: G2-Games Date: Fri, 25 Nov 2022 01:59:07 -0600 Subject: [PATCH] Added a possibly better way to check for updates on Arch --- welcome.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/welcome.sh b/welcome.sh index ebfcdfc..5fa5f9c 100755 --- a/welcome.sh +++ b/welcome.sh @@ -119,7 +119,9 @@ updates () { fi # 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) elif command -v paru &> /dev/null; then arch=$(paru -Quq 2> /dev/null | wc -l)