From aea5e5fc0f100ec44d6bb425ec9d939632b7a1b8 Mon Sep 17 00:00:00 2001 From: Craig Niles Date: Tue, 14 Jan 2025 10:48:08 -0500 Subject: [PATCH] Update Makefile to be compatible with bash 3.x --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 551402515..db31d4310 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Setting SHELL to bash allows bash commands to be executed by recipes. # This is a requirement for 'setup-envtest.sh' in the test target. # Options are set to exit when a recipe line exits non-zero or a piped command fails. -SHELL = /usr/bin/env bash -o pipefail -O globstar +SHELL = /usr/bin/env bash -o pipefail .SHELLFLAGS = -ec ##@ General @@ -121,7 +121,8 @@ bin/setup-envtest: bin go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest clean-bin: - rm -f **/bin/* + # globstar (e.g. in rm -f **/bin/*) isn't available in the version of bash packaged with MacOS + find . -wholename '*/bin/*' -delete vendir-update-dependencies: bin/vendir vendir sync --chdir tests