Skip to content

Commit

Permalink
doc/tutorial/kubernetes: support for gnu sed
Browse files Browse the repository at this point in the history
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 cue-lang#64

Change-Id: I2081f0552f3840cff2b76d690a49bbc54efb5e89
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2661
Reviewed-by: Marcel van Lohuizen <mpvl@google.com>
  • Loading branch information
xinau authored and mpvl committed Jul 29, 2019
1 parent 1ceb046 commit 15bb998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorial/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF >> kube.cue
Expand Down

0 comments on commit 15bb998

Please sign in to comment.