Skip to content

Commit

Permalink
docs: updates installs for macOS and ubuntu (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
mavogel committed Feb 25, 2021
1 parent f189a11 commit ad5dcca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@
##### MacOS

```bash
brew tap liamg/tfsec
brew install pre-commit gawk terraform-docs tflint tfsec coreutils
```

##### Ubuntu

```bash
sudo apt install python3-pip gawk &&\
sudo apt install python3-pip gawk unzip &&\
pip3 install pre-commit
curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64")" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64.tar.gz")" > terraform-docs.tgz && tar xzf terraform-docs.tgz && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
curl -L "$(curl -s https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/
env GO111MODULE=on go get -u github.com/liamg/tfsec/cmd/tfsec
env GO111MODULE=on go get -u github.com/tfsec/tfsec/cmd/tfsec
```

### 2. Install the pre-commit hook globally
Expand Down

0 comments on commit ad5dcca

Please sign in to comment.