From 31b1c954d2d85f5fdc4130f919d22b528abb6d25 Mon Sep 17 00:00:00 2001 From: t470p Date: Wed, 8 May 2024 07:50:55 -0500 Subject: [PATCH] / updated if/else loop for installation check --- scripts/99_software.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/99_software.sh b/scripts/99_software.sh index cd6d03d..a49d2ab 100644 --- a/scripts/99_software.sh +++ b/scripts/99_software.sh @@ -79,12 +79,10 @@ if [ ${operation} == "update" ] ; then list_aur=() for x in ${packages[@]} do - #if [[ $installed == *$x* ]] if [[ $installed == $x ]] then echo "Skipping (1) $x" - else #if [[ $installed != $x ]] -# then + else if [[ $(echo "$installed" | grep -E -o "^$x$") != $x ]] then if [[ "$x" =~ ^aur:* ]]; then x=${x:4}