/ updated if/else loop for installation check
This commit is contained in:
@@ -79,12 +79,10 @@ 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"
|
||||||
else #if [[ $installed != $x ]]
|
else
|
||||||
# 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
|
||||||
x=${x:4}
|
x=${x:4}
|
||||||
|
|||||||
Reference in New Issue
Block a user