disallow empty selections
This commit is contained in:
parent
b19810997b
commit
1d4c935909
1 changed files with 6 additions and 1 deletions
|
@ -270,7 +270,9 @@ machine?() {
|
|||
echo "${machinemenu}"
|
||||
numerate machines
|
||||
read -p "${selectprompt}" workingmachine
|
||||
vieworlog?
|
||||
if [ "${workingmachine}" ]; then
|
||||
vieworlog?
|
||||
fi
|
||||
echo "${repeatmachinemenu}"
|
||||
read -p "${selectprompt}" repeat
|
||||
if [ "${repeat}" = "y" ]; then
|
||||
|
@ -284,6 +286,9 @@ routines?() {
|
|||
echo "${routinemenu}"
|
||||
numerate routines
|
||||
read -p "${selectprompt}" workingroutine
|
||||
if [ -z "${workingroutine}" ]; then
|
||||
routines?
|
||||
fi
|
||||
}
|
||||
|
||||
main() {
|
||||
|
|
Loading…
Add table
Reference in a new issue