From 26bfaf5306a8de5bb94bfaacfe282bf46c8e8667 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 15:17:35 -0600 Subject: [PATCH] update --- functions/update_apps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 6344be3b..6651e331 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -15,8 +15,7 @@ do if [[ "$jobs" -ge "$update_limit" ]]; then sleep 3 else - application="${array[$it]}" - update_apps "$application" & + update_apps "${array[$it]}" & processes+=($!) ((it++)) fi @@ -32,6 +31,7 @@ done export -f commander update_apps(){ +i=${array[$it]} app_name=$(echo "$i" | awk -F ',' '{print $1}') #print out first catagory, name. old_app_ver=$(echo "$i" | awk -F ',' '{print $4}' | awk -F '_' '{print $1}' | awk -F '.' '{print $1}') #previous/current Application MAJOR Version new_app_ver=$(echo "$i" | awk -F ',' '{print $5}' | awk -F '_' '{print $1}' | awk -F '.' '{print $1}') #new Application MAJOR Version