/ updated if/else loop for installation check

This commit is contained in:
t470p
2024-05-08 07:50:55 -05:00
parent 37b02fc3c7
commit 31b1c954d2

View File

@@ -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}