From b7608a59d04f33dc0297871f7a5b27d83f5960e0 Mon Sep 17 00:00:00 2001 From: G2-Games Date: Mon, 6 Mar 2023 16:58:39 -0600 Subject: [PATCH] Fixed major issue with apt update checking on debian systems --- welcome.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/welcome.sh b/welcome.sh index bfd1af6..707bd22 100755 --- a/welcome.sh +++ b/welcome.sh @@ -119,7 +119,7 @@ updates () { updchk () { # Check for APT if command -v apt-get &> /dev/null; then - debian=$(apt-get -s dist-upgrade -V | grep '=>' || [[ $? == 1 ]] | wc -l) + debian=$(apt-get -s dist-upgrade -V | grep -c '=>') fi # Check for different Arch things