Skip to content

Commit 00cbcbc

Browse files
Modernize check.sh script ♻️
1 parent e7cafc9 commit 00cbcbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
dotnet jb inspectcode Notion.sln -f="Text" --no-build --include="**.cs" -o=".lint/CodeWarningResults.txt"
44

5-
totalLines=`cat .lint/CodeWarningResults.txt | grep "^.*$" -c`
5+
totalLines=$(file .lint/CodeWarningResults.txt | nl | wc -l)
66

77
if [[ "$totalLines" -gt 1 ]]; then
88
echo "There are few linter warnings - please fix them before running the pipeline"

0 commit comments

Comments
 (0)