mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-02-05 17:29:03 +00:00
Use bulletproof vulcan logic, not dumb human logic
This commit is contained in:
parent
2b15bb771f
commit
24b81ffa26
@ -231,13 +231,14 @@ menu() {
|
||||
fi
|
||||
done
|
||||
|
||||
# If no match was found, the user entered an invalid option
|
||||
if [ "$matched" == "false" ]; then
|
||||
# Check if we're done looping the menu
|
||||
if [ "$matched" == "true" ]; then
|
||||
# Match was found and actioned, so exit the menu
|
||||
break
|
||||
else
|
||||
# If no match was found, the user entered an invalid option
|
||||
echo -e "\nInvalid selection."
|
||||
continue
|
||||
else
|
||||
# Match was found and actioned, so exit the menu
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user