Skip to content

Commit 7c66f7a

Browse files
committed
Makefile: make fix-traling-whitespaces BSD compliant
https://www.baeldung.com/linux/gnu-bsd-stream-editor
1 parent 7960f9f commit 7c66f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fix-trailing-whitespace: ## Remove trailing whitespaces from all files
103103
-not -path "./website/static/api-docs/*" \
104104
-not -path "./website/.docusaurus/*" \
105105
-not -path "./.git/*" \
106-
-exec sed -i 's/[[:space:]]*$$//' {} + && \
106+
-exec sed -i'' -e "s/[[:space:]]*$$//" {} + && \
107107
echo "Trailing whitespaces removed."
108108

109109
.PHONY: check-trailing-whitespace

0 commit comments

Comments
 (0)