diff --git a/functions/update_apps.sh b/functions/update_apps.sh index be33626f..a8a19287 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -3,7 +3,7 @@ commander(){ mapfile -t array < <(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) -echo -e "\n\nšŸ…„ šŸ„æ šŸ„³ šŸ„° šŸ…ƒ šŸ„“ šŸ…‚" +echo -e "šŸ…„ šŸ„æ šŸ„³ šŸ„° šŸ…ƒ šŸ„“ šŸ…‚" [[ -z ${array[*]} ]] && echo "There are no updates available" && return 0 || echo "Update(s) Available: ${#array[@]}" echo "Asynchronous Updates: $update_limit" [[ -z $timeout ]] && echo "Default Timeout: 500" && timeout=500 || echo "Custom Timeout: $timeout" @@ -35,7 +35,8 @@ do fi done rm temp.txt - +echo +echo } export -f commander @@ -164,7 +165,5 @@ for i in "${echo_array[@]}" do echo -e "$i" done - - } export -f after_update_actions \ No newline at end of file