mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-11-11 04:47:49 +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
|
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
|
||||||
|
# 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."
|
echo -e "\nInvalid selection."
|
||||||
continue
|
continue
|
||||||
else
|
|
||||||
# Match was found and actioned, so exit the menu
|
|
||||||
break
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user