This commit is contained in:
Gustavo 2020-07-17 14:57:16 -04:00
parent 3f53ddcd7d
commit 4d2ff30178
1 changed files with 1 additions and 1 deletions

2
flash
View File

@ -232,7 +232,7 @@ esac
print_head(){
QUESTION=$(echo "${q[1]}" | fold --spaces --width=59)
echo -e "${WHITEBG} Fla.sh - Flash Cards In Your Terminal ${NC}
${ORANGE}${BOLD} Current Deck:${BOLD}${NC}\t$(basename -s .csv $CURRENT_DECK)
${ORANGE}${BOLD} Current Deck:${BOLD}${NC}\t$(basename -s .csv "$CURRENT_DECK")
${ORANGE}${BOLD}Cards Reviewed:${BOLD}${NC}\t$COUNTER
\t${ORANGE}${BOLD}High Score:${BOLD}${NC}\t$(cat "$HIGH_SCORE")
\t${ORANGE}${BOLD}Avg review:${BOLD}${NC}\t$(awk '{ sum += $7; n++ } END { if (n > 0) print sum / n; }' "$REVIEW_LOG")