exit menu and backup if no valid selection
This commit is contained in:
parent
83785c184b
commit
1577082435
@ -14,7 +14,7 @@ echo "8) Update Applications"
|
|||||||
echo "9) Command to Container"
|
echo "9) Command to Container"
|
||||||
echo
|
echo
|
||||||
echo "0) Exit"
|
echo "0) Exit"
|
||||||
read -rt 120 -p "Please select an option by number: " selection
|
read -rt 120 -p "Please select an option by number: " selection || { echo -e "\nFailed to make a selection in time" ; exit; }
|
||||||
|
|
||||||
case $selection in
|
case $selection in
|
||||||
0)
|
0)
|
||||||
@ -30,7 +30,7 @@ case $selection in
|
|||||||
mount
|
mount
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
read -rt 120 -p "What is the maximun number of backups you would like?: " number_of_backups || echo "Failed to make a selection"
|
read -rt 120 -p "What is the maximun number of backups you would like?: " number_of_backups || { echo -e "\nFailed to make a selection in time" ; exit; }
|
||||||
backup="true"
|
backup="true"
|
||||||
;;
|
;;
|
||||||
5)
|
5)
|
||||||
|
Loading…
Reference in New Issue
Block a user