allow user to quit at score entry too

This commit is contained in:
Bryan Jenks 2020-04-21 20:54:32 -07:00
parent 4a9862bb02
commit be5930a376
1 changed files with 4 additions and 1 deletions

5
flash
View File

@ -141,7 +141,7 @@ main(){
${q[1]}" ${q[1]}"
echo -e "" echo -e ""
read -sn 1 NEXT read -sn 1 NEXT
if [ "$NEXT" = q ]; then if [ "$NEXT" = q ] || [ "$NEXT" = Q ]; then
cd "$PWD" && exit cd "$PWD" && exit
fi fi
echo -e "${LGREY}Answer:${NC} echo -e "${LGREY}Answer:${NC}
@ -154,6 +154,9 @@ main(){
echo -e "${LRED}Hard${NC} [1] ${RED}Difficult${NC} [2] ${YELLOW}Normal${NC} [3] ${GREEN}Mild${NC} [4] ${LGREEN}Easy${NC} [5]" echo -e "${LRED}Hard${NC} [1] ${RED}Difficult${NC} [2] ${YELLOW}Normal${NC} [3] ${GREEN}Mild${NC} [4] ${LGREEN}Easy${NC} [5]"
echo -e "" echo -e ""
read -sn 1 DIFFICULTY_SCORE read -sn 1 DIFFICULTY_SCORE
if [ "$DIFFICULTY_SCORE" = q ] || [ "$DIFFICULTY_SCORE" = Q ]; then
cd "$PWD" && exit
fi
clear clear
COUNTER="$(($COUNTER+1))" # Increment count for above test and card review count increment COUNTER="$(($COUNTER+1))" # Increment count for above test and card review count increment