/ if else upd

This commit is contained in:
t470p
2024-05-08 07:49:16 -05:00
parent e57794c04e
commit 11cdc0c1cc

View File

@@ -79,10 +79,11 @@ if [ ${operation} == "update" ] ; then
list_aur=()
for x in ${packages[@]}
do
if [[ $installed == *$x* ]]
#if [[ $installed == *$x* ]]
if [[ $installed == $x ]]
then
echo "Skipping (1) $x"
elif [[ $installed != *$x* ]]
else #if [[ $installed != $x ]]
then
if [[ $(echo "$installed" | grep -E -o "^$x$") != $x ]] then
if [[ "$x" =~ ^aur:* ]]; then