From 116492cb92401a4ba883b995751366c78adcb7b4 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Thu, 4 Aug 2022 22:00:18 -0600 Subject: [PATCH] test --- functions/update_apps.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 1dd6508d..d32bf7da 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -12,7 +12,8 @@ echo "Asynchronous Updates: $update_limit" #rearange array for i in ${array[$@]} do - if printf '%s\0' "${ignore[@]}" | grep -iFxqz "$i" ; then + in=$(awk -F ',' '{print $1}') + if printf '%s\0' "${ignore[@]}" | grep -iFxqz "$in" ; then new_array+=("$i") elif grep -qs "^$i," failed.txt ; then new_array+=("$i") @@ -21,7 +22,8 @@ done for i in ${array[$@]} do - printf '%s\0' "${new_array[@]}" | grep -iFxqz "$i" || new_array+=("$i") + in=$(awk -F ',' '{print $1}') + printf '%s\0' "${new_array[@]}" | grep -iFxqz "$in" || new_array+=("$i") done for i in ${new_array[$@]}