Skip to content

Commit

Permalink
🌱 : Fix make remove-spaces for GNU system (#4330)
Browse files Browse the repository at this point in the history
Fix make remove-spaces for GNU system
  • Loading branch information
damsien authored Nov 15, 2024
1 parent 1a41eec commit d8f4da2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ generate: generate-testdata generate-docs ## Update/generate all mock data. You
.PHONY: remove-spaces
remove-spaces:
@echo "Removing trailing spaces"
@find . -type f -name "*.md" -exec sed -i '' 's/[[:space:]]*$$//' {} + || true
@SED_CMD="sed -i ''" && [ "$$(uname)" != "Darwin" ] && SED_CMD="sed -i"; \
find . -type f -name "*.md" -exec $$SED_CMD 's/[[:space:]]*$$//' {} + || true

.PHONY: generate-testdata
generate-testdata: ## Update/generate the testdata in $GOPATH/src/sigs.k8s.io/kubebuilder
Expand Down

0 comments on commit d8f4da2

Please sign in to comment.