File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ build/aws-stack.yml:
74
74
} else { \
75
75
print \
76
76
}\
77
- }' templates/aws-stack.yml | sed "s/%v/$(VERSION)/" > $@
77
+ }' templates/aws-stack.yml | $(SED) "s/%v/$(VERSION)/" > $@
78
78
79
79
# -----------------------------------------
80
80
# AMI creation with Packer
@@ -235,9 +235,12 @@ AGENT_VERSION ?= $(shell curl -Lfs "https://buildkite.com/agent/releases/latest?
235
235
236
236
SED ?= sed
237
237
ifeq ($(shell uname) , Darwin)
238
- # Use GNU sed, not MacOS sed
239
- # Install with: brew install gsed
238
+ # Use GNU sed, not MacOS sed - required for extended regex support
239
+ # BSD sed (default on macOS) doesn't support the regex patterns used in this Makefile
240
240
SED = gsed
241
+ ifeq ($(shell command -v gsed >/dev/null 2>&1 && echo yes || echo no), no)
242
+ $(error GNU sed (gsed) is required on macOS but not found. Please install with: brew install gnu-sed)
243
+ endif
241
244
endif
242
245
243
246
bump-agent-version :
You can’t perform that action at this time.
0 commit comments