From 1bb08e7d860d8561b3df2bd75c9410f822ce1075 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Tue, 10 May 2022 14:46:47 -0600 Subject: [PATCH] better ignore list search --- heavy_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heavy_script.sh b/heavy_script.sh index b80ca5b8..9f3d36ee 100644 --- a/heavy_script.sh +++ b/heavy_script.sh @@ -177,7 +177,7 @@ update_apps(){ old_full_ver=$(echo "$i" | awk -F ',' '{print $4}') #Upgraded From new_full_ver=$(echo "$i" | awk -F ',' '{print $5}') #Upraded To rollback_version=$(echo "$i" | awk -F ',' '{print $4}' | awk -F '_' '{print $2}') - [[ "${ignore[*]}" == *"${app_name}"* ]] && echo -e "\n$app_name\nIgnored, skipping" && continue + printf '%s\0' "${ignore[@]}" | grep -iFxqz "${app_name}" && echo -e "\n$app_name\nIgnored, skipping" && continue #If application is on ignore list, skip if [[ "$diff_app" == "$diff_chart" || "$update_all_apps" == "true" ]]; then #continue to update startstatus=$status if [[ $stop_before_update == "true" ]]; then # Check to see if user is using -S or not