File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,15 @@ update-stack: build/aws-stack.yml env-STACK_NAME
204
204
205
205
AGENT_VERSION ?= $(shell curl -Lfs "https://buildkite.com/agent/releases/latest?platform=linux&arch=amd64" | grep version | cut -d= -f2)
206
206
207
+ SED ?= sed
208
+ ifeq ($(shell uname) , Darwin)
209
+ SED = gsed
210
+ endif
211
+
207
212
bump-agent-version :
208
- sed -Ei " s/\[Buildkite Agent v.*\]/[Buildkite Agent v$( AGENT_VERSION) ]/g" README.md
209
- sed -Ei " s/AGENT_VERSION=.+/AGENT_VERSION=$( AGENT_VERSION) /g" packer/linux/scripts/install-buildkite-agent.sh
210
- sed -Ei " s/\\\$ $AGENT_VERSION = \" .+\" /\$ $AGENT_VERSION = \" $( AGENT_VERSION) \" /g" packer/windows/scripts/install-buildkite-agent.ps1
213
+ $( SED ) -Ei " s/\[Buildkite Agent v.*\]/[Buildkite Agent v$( AGENT_VERSION) ]/g" README.md
214
+ $( SED ) -Ei " s/AGENT_VERSION=.+/AGENT_VERSION=$( AGENT_VERSION) /g" packer/linux/scripts/install-buildkite-agent.sh
215
+ $( SED ) -Ei " s/\\\$ $AGENT_VERSION = \" .+\" /\$ $AGENT_VERSION = \" $( AGENT_VERSION) \" /g" packer/windows/scripts/install-buildkite-agent.ps1
211
216
212
217
validate : build/aws-stack.yml
213
218
aws --no-cli-pager cloudformation validate-template \
You can’t perform that action at this time.
0 commit comments