formatting
This commit is contained in:
parent
85eb4a17a1
commit
9aa6e15f4e
@ -108,7 +108,7 @@ menu(){
|
||||
do
|
||||
clear -x
|
||||
title
|
||||
echo "Choose your update options"
|
||||
echo "Choose Your Update Options"
|
||||
echo "--------------------------"
|
||||
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."
|
||||
@ -174,6 +174,6 @@ menu(){
|
||||
echo "Unknown option" && exit 1
|
||||
;;
|
||||
esac
|
||||
echo ""
|
||||
echo
|
||||
}
|
||||
export -f menu
|
@ -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 "Aplication Update Output"
|
||||
echo -e "\nAplication Update Output"
|
||||
echo "------------------------"
|
||||
[[ -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"
|
||||
|
@ -147,7 +147,7 @@ if [[ "$number_of_backups" -ge 1 && "$sync" == "true" ]]; then # Run backup and
|
||||
sync &
|
||||
wait
|
||||
fi
|
||||
[[ "$number_of_backups" -ge 1 && -z "$sync" ]] && echo "Please wait for output, this could take a while.." && backup
|
||||
[[ "$sync" == "true" && "$number_of_backups" -lt 1 ]] && echo "Please wait for output, this could take a while.." && sync
|
||||
[[ "$number_of_backups" -ge 1 && -z "$sync" ]] && echo "Backing up \"ix-applications\" dataset, please wait.." && backup
|
||||
[[ "$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
|
||||
[[ "$prune" == "true" ]] && prune
|
||||
|
Loading…
Reference in New Issue
Block a user