Created
July 20, 2019 07:22
-
-
Save vasyakrg/689eec3719b910def6f12f9ac955f86b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| PATH="${HOME}/bin" | |
| TMPDIR="${TMPDIR:-/tmp}" | |
| VERSION="0.11.11" | |
| if ! terraform version ; then | |
| mkdir -p "${HOME}/bin" | |
| pushd "${TMPDIR}" ; | |
| curl -sSL | |
| -o terraform.zip | |
| "https://releases.hashicorp.com/terraform/${VERSION}/terraform_${VERSION}_linux_amd64.zip" ; | |
| unzip terraform.zip ; | |
| mv -v terraform "${HOME}/bin/terraform" ; | |
| chmod +x "${HOME}/bin/terraform" ; | |
| popd ; | |
| terraform version ; | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment