Skip to content

Commit 15bb998

Browse files
xinaumpvl
authored andcommitted
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 <[email protected]>
1 parent 1ceb046 commit 15bb998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial/kubernetes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ EOF
359359

360360
```
361361
# set the component label to our new top-level field
362-
$ sed -i "" 's/component:.*string/component: _component/' kube.cue
362+
$ sed -i.bak 's/component:.*string/component: _component/' kube.cue && rm kube.cue.bak
363363
364364
# add the new top-level field to our previous template definitions
365365
$ cat <<EOF >> kube.cue

0 commit comments

Comments
 (0)