another #15 fix for control of keys on scoring

This commit is contained in:
Bryan Jenks 2020-05-04 11:26:55 -07:00
parent 949d92fde7
commit 10ac67e47c
1 changed files with 3 additions and 0 deletions

3
flash
View File

@ -191,6 +191,9 @@ main(){
echo -e ""
echo -e "${LGREY}Select a number to continue, or${NC} ${LRED}Q${NC} ${LGREY}to quit...${NC}"
read -sn 1 DIFFICULTY_SCORE
while [[ ! "$DIFFICULTY_SCORE" =~ [12345qQ] ]]; do
read -sn 1 DIFFICULTY_SCORE
done
if [ "$DIFFICULTY_SCORE" = q ] || [ "$DIFFICULTY_SCORE" = Q ]; then
add_usage_entry && cd "$PWD" && exit
fi