Skip to content

Commit

Permalink
fix: check-line-endings command of Makefile (#499)
Browse files Browse the repository at this point in the history
Fix:
- update the command to search script file in `.` instead of `scripts/`
folder to avoid returning an error.

---------

Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Co-authored-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
JeyJeyGao and Two-Hearts committed Jan 15, 2025
1 parent 009d035 commit 4bde0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ clean:
.PHONY: check-line-endings
check-line-endings: ## check line endings
! find . -name "*.go" -type f -exec file "{}" ";" | grep CRLF
! find scripts -name "*.sh" -type f -exec file "{}" ";" | grep CRLF
! find . -name "*.sh" -type f -exec file "{}" ";" | grep CRLF

.PHONY: fix-line-endings
fix-line-endings: ## fix line endings
Expand Down

0 comments on commit 4bde0fa

Please sign in to comment.