formatting

This commit is contained in:
Heavybullets8 2022-07-26 17:58:02 -06:00
parent 85eb4a17a1
commit 9aa6e15f4e
3 changed files with 5 additions and 5 deletions

View File

@ -108,7 +108,7 @@ menu(){
do do
clear -x clear -x
title title
echo "Choose your update options" echo "Choose Your Update Options"
echo "--------------------------" echo "--------------------------"
echo "1) -b | Back-up your ix-applications dataset, specify a number after -b" echo "1) -b | Back-up your ix-applications dataset, specify a number after -b"
echo "2) -i | Add application to ignore list, one by one, see example below." echo "2) -i | Add application to ignore list, one by one, see example below."
@ -174,6 +174,6 @@ menu(){
echo "Unknown option" && exit 1 echo "Unknown option" && exit 1
;; ;;
esac esac
echo "" echo
} }
export -f menu export -f menu

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

View File

@ -147,7 +147,7 @@ if [[ "$number_of_backups" -ge 1 && "$sync" == "true" ]]; then # Run backup and
sync & sync &
wait wait
fi fi
[[ "$number_of_backups" -ge 1 && -z "$sync" ]] && echo "Please wait for output, this could take a while.." && backup [[ "$number_of_backups" -ge 1 && -z "$sync" ]] && echo "Backing up \"ix-applications\" dataset, please wait.." && backup
[[ "$sync" == "true" && "$number_of_backups" -lt 1 ]] && echo "Please wait for output, this could take a while.." && sync [[ "$sync" == "true" && "$number_of_backups" -lt 1 ]] && echo "Syncing catalogs, this takes a LONG time, please wait.." && sync
[[ "$update_all_apps" == "true" || "$update_apps" == "true" ]] && commander [[ "$update_all_apps" == "true" || "$update_apps" == "true" ]] && commander
[[ "$prune" == "true" ]] && prune [[ "$prune" == "true" ]] && prune