From 545f57b8e8fe5fc1f54662b6c0c3b1af7c2578e9 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 23:06:08 -0600 Subject: [PATCH] idk --- functions/update_apps.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index db9fb9a8..cbf7193c 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -15,7 +15,7 @@ do if [[ "$jobs" -ge "$update_limit" ]]; then sleep 1 else - update_apps "${array[$it]}" & + { update_apps "${array[$it]}" ;} & processes+=($!) ((it++)) fi @@ -32,13 +32,7 @@ export -f commander update_apps(){ app_name=$(echo "${array[$it]}" | awk -F ',' '{print $1}') #print out first catagory, name. - -if printf '%s\0' "${ignore[@]}" | grep -iFxqz "${app_name}" ; then - echo -e "\n$app_name\nIgnored, skipping" - return 0 #If application is on ignore list, skip - -fi - +printf '%s\0' "${ignore[@]}" | grep -iFxqz "${app_name}" && echo -e "\n$app_name\nIgnored, skipping" && return 0 #If application is on ignore list, skip old_app_ver=$(echo "${array[$it]}" | awk -F ',' '{print $4}' | awk -F '_' '{print $1}' | awk -F '.' '{print $1}') #previous/current Application MAJOR Version new_app_ver=$(echo "${array[$it]}" | awk -F ',' '{print $5}' | awk -F '_' '{print $1}' | awk -F '.' '{print $1}') #new Application MAJOR Version old_chart_ver=$(echo "${array[$it]}" | awk -F ',' '{print $4}' | awk -F '_' '{print $2}' | awk -F '.' '{print $1}') # Old Chart MAJOR version