travis 2
This commit is contained in:
parent
3f53ddcd7d
commit
4d2ff30178
2
flash
2
flash
|
|
@ -232,7 +232,7 @@ esac
|
||||||
print_head(){
|
print_head(){
|
||||||
QUESTION=$(echo "${q[1]}" | fold --spaces --width=59)
|
QUESTION=$(echo "${q[1]}" | fold --spaces --width=59)
|
||||||
echo -e "${WHITEBG} Fla.sh - Flash Cards In Your Terminal ${NC}
|
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
|
${ORANGE}${BOLD}Cards Reviewed:${BOLD}${NC}\t$COUNTER
|
||||||
\t${ORANGE}${BOLD}High Score:${BOLD}${NC}\t$(cat "$HIGH_SCORE")
|
\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")
|
\t${ORANGE}${BOLD}Avg review:${BOLD}${NC}\t$(awk '{ sum += $7; n++ } END { if (n > 0) print sum / n; }' "$REVIEW_LOG")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue