remove spaces

This commit is contained in:
Heavybullets8 2022-07-31 13:03:45 -06:00
parent 41e2b9f9ff
commit 58ab28ef0f

View File

@ -3,7 +3,7 @@
commander(){ 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) 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[@]}" [[ -z ${array[*]} ]] && echo "There are no updates available" && return 0 || echo "Update(s) Available: ${#array[@]}"
echo "Asynchronous Updates: $update_limit" echo "Asynchronous Updates: $update_limit"
[[ -z $timeout ]] && echo "Default Timeout: 500" && timeout=500 || echo "Custom Timeout: $timeout" [[ -z $timeout ]] && echo "Default Timeout: 500" && timeout=500 || echo "Custom Timeout: $timeout"
@ -35,7 +35,8 @@ do
fi fi
done done
rm temp.txt rm temp.txt
echo
echo
} }
export -f commander export -f commander
@ -164,7 +165,5 @@ for i in "${echo_array[@]}"
do do
echo -e "$i" echo -e "$i"
done done
} }
export -f after_update_actions export -f after_update_actions