Skip to content

Commit 69b756d

Browse files
Update Makefile to be compatible with bash 3.x (#3708)
Co-authored-by: georgethebeatle <[email protected]>
1 parent 3c21050 commit 69b756d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Setting SHELL to bash allows bash commands to be executed by recipes.
22
# This is a requirement for 'setup-envtest.sh' in the test target.
33
# Options are set to exit when a recipe line exits non-zero or a piped command fails.
4-
SHELL = /usr/bin/env bash -o pipefail -O globstar
4+
SHELL = /usr/bin/env bash -o pipefail
55
.SHELLFLAGS = -ec
66

77
##@ General
@@ -121,7 +121,8 @@ bin/setup-envtest: bin
121121
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
122122

123123
clean-bin:
124-
rm -f **/bin/*
124+
# globstar (e.g. in rm -f **/bin/*) isn't available in the version of bash packaged with MacOS
125+
find . -wholename '*/bin/*' -delete
125126

126127
vendir-update-dependencies: bin/vendir
127128
vendir sync --chdir tests

0 commit comments

Comments
 (0)