test
This commit is contained in:
parent
987bc9812c
commit
8b0b8393a1
@ -14,8 +14,7 @@ menu(){
|
|||||||
echo
|
echo
|
||||||
echo "0) Exit"
|
echo "0) Exit"
|
||||||
read -rt 600 -p "Please select an option by number: " selection
|
read -rt 600 -p "Please select an option by number: " selection
|
||||||
while true
|
|
||||||
do
|
|
||||||
case $selection in
|
case $selection in
|
||||||
0)
|
0)
|
||||||
exit
|
exit
|
||||||
@ -170,13 +169,11 @@ menu(){
|
|||||||
echo "$current_selection was not an option, try again" && sleep 5 && continue
|
echo "$current_selection was not an option, try again" && sleep 5 && continue
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "That was not an option, please try again" && sleep 5 && menu
|
echo "That was not an option, please try agian" && menu
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
done
|
|
||||||
}
|
}
|
||||||
export -f menu
|
export -f menu
|
Loading…
Reference in New Issue
Block a user