Skip to content

Commit f8dd119

Browse files
author
Gabriel Monroy
committed
fix(makefile): use portable sed for make discovery-url
1 parent d45b4d9 commit f8dd119

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ dev-registry: check-docker
1717
@echo " export DEV_REGISTRY=`boot2docker ip 2>/dev/null`:5000"
1818

1919
discovery-url:
20-
sed -i -e "s,# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923,discovery: $$(curl -s -w '\n' https://discovery.etcd.io/new)," contrib/coreos/user-data
20+
sed -e "s,# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923,discovery: $$(curl -s -w '\n' https://discovery.etcd.io/new)," contrib/coreos/user-data > contrib/coreos/user-data.new
21+
mv contrib/coreos/user-data.new contrib/coreos/user-data
2122

2223
build: check-docker
2324
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) build &&) echo done

0 commit comments

Comments
 (0)