From 319f65d7d65e49379a31565b45753b4725cc8225 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 20 Jul 2022 07:28:15 -0600 Subject: [PATCH] todo --- heavy_script.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/heavy_script.sh b/heavy_script.sh index 8d38d6bf..8f38bfad 100644 --- a/heavy_script.sh +++ b/heavy_script.sh @@ -218,6 +218,8 @@ export -f sync update_apps(){ +# Replace with line below after testing +# cli -m csv -c 'app chart_release query name,update_available,human_version,human_latest_version,container_images_update_available,status' | tr -d " \t\r" | grep -E ",true($|,)" | sort mapfile -t array < <(cli -m csv -c 'app chart_release query name,update_available,human_version,human_latest_version,container_images_update_available,status' | grep -E ",true(,|\b)" | sort) [[ -z $array ]] && echo -e "\nThere are no updates available" && return 0 || echo -e "\n${#array[@]} update(s) available" [[ -z $timeout ]] && echo -e "\nDefault Timeout: 500" && timeout=500 || echo -e "\nCustom Timeout: $timeout"