-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
893c5af
commit 64f8d9d
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Calculate half the number of files | ||
file_count=$(git ls-files | wc -l) | ||
half_file_count=$((file_count / 2)) | ||
file_count=$(git ls-files | grep -E '\.(cpp|cs)$' | wc -l) | ||
|
||
# Display values to verify calculations | ||
echo "Total number of files: $file_count" | ||
echo "Half the number of files: $half_file_count" | ||
|
||
# Replace placeholder in README.md with the calculated value | ||
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 |