allow user to quit at score entry too
This commit is contained in:
parent
4a9862bb02
commit
be5930a376
5
flash
5
flash
|
|
@ -141,7 +141,7 @@ main(){
|
|||
${q[1]}"
|
||||
echo -e ""
|
||||
read -sn 1 NEXT
|
||||
if [ "$NEXT" = q ]; then
|
||||
if [ "$NEXT" = q ] || [ "$NEXT" = Q ]; then
|
||||
cd "$PWD" && exit
|
||||
fi
|
||||
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 ""
|
||||
read -sn 1 DIFFICULTY_SCORE
|
||||
if [ "$DIFFICULTY_SCORE" = q ] || [ "$DIFFICULTY_SCORE" = Q ]; then
|
||||
cd "$PWD" && exit
|
||||
fi
|
||||
clear
|
||||
|
||||
COUNTER="$(($COUNTER+1))" # Increment count for above test and card review count increment
|
||||
|
|
|
|||
Loading…
Reference in New Issue