diff --git a/README.md b/README.md index 953e3df..10f5ffc 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/main.tf b/main.tf index 7f62484..d5d039a 100644 --- a/main.tf +++ b/main.tf @@ -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