Skip to content

Commit

Permalink
🌱 : Fix make remove-spaces for GNU system (kubernetes-sigs#4330)
Browse files Browse the repository at this point in the history
Fix make remove-spaces for GNU system
  • Loading branch information
damsien authored and vtrenton committed Nov 20, 2024
1 parent 9b160c7 commit 3decc78
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 3decc78

Please sign in to comment.