Created
February 5, 2016 18:16
Revisions
-
tj created this gist
Feb 5, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ update_terraform() { version=$1 echo "[+] updating terraform to $version" curl -# -o /tmp/terraform.zip https://releases.hashicorp.com/terraform/$version/terraform_${version}_darwin_amd64.zip echo "[+] unzipping archive" unzip /tmp/terraform.zip -d /tmp/terraform current=$(dirname $(which terraform)) echo "[+] installing to $current" cp -fr /tmp/terraform/* $current echo "[+] updated to $version" }