Skip to content

Commit

Permalink
Ensure end-of-line in latest date build grep
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnoc committed Aug 20, 2023
1 parent 5dd89d7 commit 402fa33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

git clean -Xfd

latest_date=$(grep -P '^[0-9]{4}-[0-9]{2}-[0-9]{2}' ./scores/scores.txt | tail -1)
latest_date=$(grep -P '^[0-9]{4}-[0-9]{2}-[0-9]{2}$' ./scores/scores.txt | tail -1)

python3 ../mahjong-scorer/mahjongscore.py ./scores/scores.txt
python3 ../mahjong-scorer/mahjongscore.py ./scores/scores.txt --from $latest_date
Expand Down

0 comments on commit 402fa33

Please sign in to comment.