polish format

This commit is contained in:
Heavybullets8 2022-07-27 10:03:34 -06:00
parent 97b65f746d
commit 27eb8b0e61
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
sync(){ sync(){
echo_sync+=("\nSync Output") echo_sync+=("\n\nSync Output")
echo_sync+=("-----------") echo_sync+=("-----------")
cli -c 'app catalog sync_all' &> /dev/null && echo_sync+=("Catalog sync complete") cli -c 'app catalog sync_all' &> /dev/null && echo_sync+=("Catalog sync complete")
@ -15,7 +15,7 @@ done
export -f sync export -f sync
prune(){ prune(){
echo -e "\nDocker Prune Output" echo -e "\n\nDocker Prune Output"
echo "-------------------" echo "-------------------"
echo "Pruned Docker Images" echo "Pruned Docker Images"
docker image prune -af | grep "^Total" || echo "Failed to Prune Docker Images" docker image prune -af | grep "^Total" || echo "Failed to Prune Docker Images"

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 "\nAplication Update Output" echo -e "\n\nAplication Update Output"
echo "------------------------" echo "------------------------"
[[ -z $array ]] && echo "There are no updates available" && return 0 || echo "${#array[@]} update(s) available" [[ -z $array ]] && echo "There are no updates available" && return 0 || echo "${#array[@]} update(s) available"
[[ -z $timeout ]] && echo "Default Timeout: 500" && timeout=500 || echo "Custom Timeout: $timeout" [[ -z $timeout ]] && echo "Default Timeout: 500" && timeout=500 || echo "Custom Timeout: $timeout"