fix mistake in menu mapping

This commit is contained in:
Kjeld Schouten-Lebbing 2022-06-14 22:14:50 +02:00
parent 5bedc2119e
commit 3833f8b672
No known key found for this signature in database
GPG Key ID: 3D586240A9175B99

View File

@ -14,38 +14,38 @@ no_args(){
read -rt 600 -p "Please select an option by number: " selection
case $selection in
1)
0)
help="true"
;;
2)
1)
dns="true"
;;
3)
2)
mountPVC="true"
;;
4)
3)
listBackups="true"
;;
5)
4)
read -rt 600 -p "Please type the max number of backups to keep: " backups
re='^[0-9]+$'
number_of_backups=$backups
! [[ $backups =~ $re ]] && echo -e "Error: -b needs to be assigned an interger\n\"""$number_of_backups""\" is not an interger" >&2 && exit
[[ "$number_of_backups" -le 0 ]] && echo "Error: Number of backups is required to be at least 1" && exit
;;
6)
5)
restore="true"
;;
7)
6)
deleteBackup="true"
;;
8)
7)
helmEnable="true"
;;
9)
8)
aptEnable="true"
;;
10)
9)
echo ""
echo "1 Update Apps Excluding likely breaking major changes"
echo "2 Update Apps Including likely breaking major changes"