use 'sed -i.bak' instead of 'sed -i' to make it compatible with macos sed

This commit is contained in:
David Schweikert
2018-10-07 22:26:15 +02:00
parent 489f6e2e67
commit 6d4ad82262
4 changed files with 6 additions and 9 deletions

View File

@@ -108,16 +108,10 @@ label_ applied to all resources:
<!-- @addLabel @test -->
```
sed -i 's/app: hello/app: my-hello/' \
sed -i.bak 's/app: hello/app: my-hello/' \
$BASE/kustomization.yaml
```
On a Mac, use:
```
sed -i '' $pattern $file
```
to get in-place editing.
See the effect:
<!-- @checkLabel @test -->
```