1
0
mirror of https://github.com/the-sane/lug-helper.git synced 2025-07-03 10:43:22 +00:00

Use bulletproof vulcan logic, not dumb human logic

This commit is contained in:
the-sane
2020-09-07 21:34:21 -04:00
committed by GitHub
parent 2b15bb771f
commit 24b81ffa26

@ -231,13 +231,14 @@ menu() {
fi fi
done done
# If no match was found, the user entered an invalid option # Check if we're done looping the menu
if [ "$matched" == "false" ]; then if [ "$matched" == "true" ]; then
echo -e "\nInvalid selection."
continue
else
# Match was found and actioned, so exit the menu # Match was found and actioned, so exit the menu
break break
else
# If no match was found, the user entered an invalid option
echo -e "\nInvalid selection."
continue
fi fi
done done
fi fi