Skip to content

Commit

Permalink
Fix bin/tats grep
Browse files Browse the repository at this point in the history
  • Loading branch information
erikw authored Feb 12, 2025
1 parent 965eed9 commit 30cbd8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ nbr_solved() {
}

printf "Number of solved puzzle days:\n"
years=$(find . -type d -regex "\./*[0-9]*" -maxdepth 1 | grep -oE "\d+" | sort)
years=$(find . -maxdepth 1 -type d -regex "\./*[0-9]*" | grep -oE "[0-9]+" | sort)
for year in $years; do
solved=$(nbr_solved $year)
test $solved = "25" && solved="25 ⭐️"
Expand Down

0 comments on commit 30cbd8c

Please sign in to comment.