disallow empty selections

This commit is contained in:
ida schmidt 2024-11-15 15:35:33 +00:00
parent b19810997b
commit 1d4c935909

View file

@ -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() {