Skip to content

Commit

Permalink
Update Makefile to be compatible with bash 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
cniles authored Jan 14, 2025
1 parent 7354c6c commit aea5e5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

0 comments on commit aea5e5f

Please sign in to comment.