exit menu mount

This commit is contained in:
Heavybullets8 2022-07-29 01:30:27 -06:00
parent c7c3be0d95
commit 3baffef323

View File

@ -22,7 +22,10 @@ do
clear -x clear -x
title title
echo "$list" echo "$list"
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
app=$(echo -e "$list" | grep ^"$selection " | awk '{print $2}' | cut -c 4- ) app=$(echo -e "$list" | grep ^"$selection " | awk '{print $2}' | cut -c 4- )
[[ -z "$app" ]] && echo "Invalid Selection: $selection, was not an option" && sleep 3 && continue #Check for valid selection. If none, contiue [[ -z "$app" ]] && echo "Invalid Selection: $selection, was not an option" && sleep 3 && continue #Check for valid selection. If none, contiue
pvc=$(echo -e "$list" | grep ^"$selection ") pvc=$(echo -e "$list" | grep ^"$selection ")