Use sed instead of tail for terraform-docs command (#211)

This commit is contained in:
Andrew Roth
2018-12-14 04:02:13 -05:00
committed by Max Williams
parent 9d6740e116
commit dfec7b1003
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ Documentation should be modified within `main.tf` and generated using [terraform
Install it with `go get github.com/segmentio/terraform-docs` or `brew install terraform-docs` and then use it to generate the `README.md` file:
```
terraform-docs --with-aggregate-type-defaults md ./ | cat -s | tail -r | tail -n +2 | tail -r > README.md
terraform-docs --with-aggregate-type-defaults md ./ | sed -e '$ d' -e 'N;/^\n$/D;P;D' > README.md
```
## Contributing

View File

@@ -71,7 +71,7 @@
* Install it with `go get github.com/segmentio/terraform-docs` or `brew install terraform-docs` and then use it to generate the `README.md` file:
*
* ```
* terraform-docs --with-aggregate-type-defaults md ./ | cat -s | tail -r | tail -n +2 | tail -r > README.md
* terraform-docs --with-aggregate-type-defaults md ./ | sed -e '$ d' -e 'N;/^\n$/D;P;D' > README.md
* ```
* ## Contributing