From 1c7d8627b81547c6748ac52085d2b33fabb42b4b Mon Sep 17 00:00:00 2001 From: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Date: Sat, 16 Nov 2024 10:01:58 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20:=20Revert=20Fix=20`make=20remov?= =?UTF-8?q?e-spaces`=20for=20GNU=20system"=20(#4331)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert "🌱 : Fix `make remove-spaces` for GNU system (#4330)" This reverts commit d8f4da2d2924fe9ba48026c6b2f9dd12b0cbf615. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a9830cad082..be4fa376ff6 100644 --- a/Makefile +++ b/Makefile @@ -71,8 +71,7 @@ generate: generate-testdata generate-docs ## Update/generate all mock data. You .PHONY: remove-spaces remove-spaces: @echo "Removing trailing spaces" - @SED_CMD="sed -i ''" && [ "$$(uname)" != "Darwin" ] && SED_CMD="sed -i"; \ - find . -type f -name "*.md" -exec $$SED_CMD 's/[[:space:]]*$$//' {} + || true + @find . -type f -name "*.md" -exec sed -i '' 's/[[:space:]]*$$//' {} + || true .PHONY: generate-testdata generate-testdata: ## Update/generate the testdata in $GOPATH/src/sigs.k8s.io/kubebuilder