exit option
This commit is contained in:
parent
4b3847c6fc
commit
79f957f8ac
@ -121,7 +121,10 @@ do
|
|||||||
echo "Choose a restore point"
|
echo "Choose a restore point"
|
||||||
fi
|
fi
|
||||||
echo "$list_backups"
|
echo "$list_backups"
|
||||||
|
echo
|
||||||
|
echo "0) Exit"
|
||||||
read -rt 120 -p "Please type a number: " selection
|
read -rt 120 -p "Please type a number: " selection
|
||||||
|
[[ $selection == 0 ]] && echo "Exiting.." && exit
|
||||||
restore_point=$(echo "$list_backups" | grep ^"$selection)" | awk '{print $2}')
|
restore_point=$(echo "$list_backups" | grep ^"$selection)" | awk '{print $2}')
|
||||||
#Check for valid selection. If none, kill script
|
#Check for valid selection. If none, kill script
|
||||||
if [[ -z "$selection" ]]; then
|
if [[ -z "$selection" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user