/ updated if/else loop for installation check
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user