Skip to content

Commit

Permalink
Update update_readme.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeHyungJoo authored Dec 15, 2023
1 parent 66eb6d4 commit 0f8cab6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions update_readme.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Count the number of files
file_count=$(git ls-files | wc -l)
half_file_count=$((file_count / 2))
file_count=$($(git ls-files | wc -l) / 2)

# Replace placeholder in README.md with the file count
sed -i -E "s|^(Total Count of Solved : )[0-9]+|\1$half_file_count|g" README.md
sed -i -E "s|^(Total Count of Solved : )[0-9]+|\1$file_count|g" README.md

0 comments on commit 0f8cab6

Please sign in to comment.