Created
January 30, 2018 13:00
-
-
Save JoostvDoorn/1432fd2fe958c15ab1b3d2b629f03276 to your computer and use it in GitHub Desktop.
Update terraform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /tmp | |
wget $(echo "https://releases.hashicorp.com/terraform/$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')/terraform_$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')_linux_amd64.zip") | |
unzip terraform_$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')_linux_amd64.zip | |
cp terraform $(which terraform) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment