From 317377705acd501b9a39ea2d29fe9ffae869bd9e Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 5 Sep 2022 13:09:24 -0600 Subject: [PATCH] also rename indexes in pre_process --- functions/update_apps.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 01962ff8..812f4123 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -92,11 +92,11 @@ export -f commander pre_process(){ -app_name=$(echo "${array[$it]}" | awk -F ',' '{print $1}') #print out first catagory, name. -startstatus=$(echo "${array[$it]}" | awk -F ',' '{print $2}') #status of the app: STOPPED / DEPLOYING / ACTIVE -old_full_ver=$(echo "${array[$it]}" | awk -F ',' '{print $4}') #Upgraded From -new_full_ver=$(echo "${array[$it]}" | awk -F ',' '{print $5}') #Upraded To -rollback_version=$(echo "${array[$it]}" | awk -F ',' '{print $4}' | awk -F '_' '{print $2}') +app_name=$(echo "${array[$index]}" | awk -F ',' '{print $1}') #print out first catagory, name. +startstatus=$(echo "${array[$index]}" | awk -F ',' '{print $2}') #status of the app: STOPPED / DEPLOYING / ACTIVE +old_full_ver=$(echo "${array[$index]}" | awk -F ',' '{print $4}') #Upgraded From +new_full_ver=$(echo "${array[$index]}" | awk -F ',' '{print $5}') #Upraded To +rollback_version=$(echo "${array[$index]}" | awk -F ',' '{print $4}' | awk -F '_' '{print $2}') # Check if app is external services, append outcome to external_services file