/ if else upd
This commit is contained in:
@@ -79,10 +79,11 @@ if [ ${operation} == "update" ] ; then
|
|||||||
list_aur=()
|
list_aur=()
|
||||||
for x in ${packages[@]}
|
for x in ${packages[@]}
|
||||||
do
|
do
|
||||||
if [[ $installed == *$x* ]]
|
#if [[ $installed == *$x* ]]
|
||||||
|
if [[ $installed == $x ]]
|
||||||
then
|
then
|
||||||
echo "Skipping (1) $x"
|
echo "Skipping (1) $x"
|
||||||
elif [[ $installed != *$x* ]]
|
else #if [[ $installed != $x ]]
|
||||||
then
|
then
|
||||||
if [[ $(echo "$installed" | grep -E -o "^$x$") != $x ]] then
|
if [[ $(echo "$installed" | grep -E -o "^$x$") != $x ]] then
|
||||||
if [[ "$x" =~ ^aur:* ]]; then
|
if [[ "$x" =~ ^aur:* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user