mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
docs: updates installs for macOS and ubuntu (#175)
This commit is contained in:
parent
f189a114b1
commit
ad5dccae65
1 changed files with 3 additions and 4 deletions
|
|
@ -16,18 +16,17 @@
|
||||||
##### MacOS
|
##### MacOS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew tap liamg/tfsec
|
|
||||||
brew install pre-commit gawk terraform-docs tflint tfsec coreutils
|
brew install pre-commit gawk terraform-docs tflint tfsec coreutils
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Ubuntu
|
##### Ubuntu
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt install python3-pip gawk &&\
|
sudo apt install python3-pip gawk unzip &&\
|
||||||
pip3 install pre-commit
|
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/
|
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
|
### 2. Install the pre-commit hook globally
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue