commit 693618845d1e86b49c14c81fcd492c8d439dfefd Author: conor Date: Tue Jul 9 10:06:51 2019 +0200 initial commit diff --git a/main.sh b/main.sh new file mode 100755 index 0000000..7bcb3fb --- /dev/null +++ b/main.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +TERRA_VER=0.12.3 +INSTALL_DIR=/usr/bin + +read -p "Desired Terraform Version: " TERRA_VER + +wget -P /tmp/ https://releases.hashicorp.com/terraform/${TERRA_VER}/terraform_${TERRA_VER}_linux_amd64.zip + +unzip /tmp/terraform_${TERRA_VER}_linux_amd64.zip -d /tmp/ + +mv /tmp/terraform $(which terraform)