From 15bb99864ee8d333e965513e3dcbc77976e1dc2b Mon Sep 17 00:00:00 2001 From: xinau Date: Mon, 29 Jul 2019 12:46:41 +0000 Subject: [PATCH] doc/tutorial/kubernetes: support for gnu sed sed doesn't behave the same on mac os and linux. this change fixes the behavior by creating a backup file _kube.cue.bak_ for _kube.cue_ and deleting the file after successful completion. Issue #64 Change-Id: I2081f0552f3840cff2b76d690a49bbc54efb5e89 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2661 Reviewed-by: Marcel van Lohuizen --- doc/tutorial/kubernetes/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial/kubernetes/README.md b/doc/tutorial/kubernetes/README.md index 2ee8168fd4f..ed2c86539bf 100644 --- a/doc/tutorial/kubernetes/README.md +++ b/doc/tutorial/kubernetes/README.md @@ -359,7 +359,7 @@ EOF ``` # set the component label to our new top-level field -$ sed -i "" 's/component:.*string/component: _component/' kube.cue +$ sed -i.bak 's/component:.*string/component: _component/' kube.cue && rm kube.cue.bak # add the new top-level field to our previous template definitions $ cat <> kube.cue