From bb672e7cbf2ca71f33e4b2a647ad42c15a2965fe Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 4 Dec 2022 19:22:44 +0100 Subject: bin/terraform: Upgrading to 1.3.6 --- bin/terraform | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/terraform b/bin/terraform index ac2d331..d90a3d8 100755 --- a/bin/terraform +++ b/bin/terraform @@ -2,10 +2,27 @@ set -euo pipefail -basedir=$(dirname "$0") +version=1.3.6 -terraform_version=1.0.7 -terraform_url=https://releases.hashicorp.com/terraform/$terraform_version/terraform_${terraform_version}_linux_amd64.zip +basedir="${0%/*}" + +s=$(uname -s) +case "$s" +in + Darwin) s=darwin ;; + Linux) s=linux ;; + *) echo "Unsupported system: $s" >/dev/stderr ;; +esac + +m=$(uname -m) +case "$m" +in + x86_64) m=amd64 ;; + arm64) ;; + *) echo "Unsupported machine: $m" >/dev/stderr ;; +esac + +url=https://releases.hashicorp.com/terraform/${version}/terraform_${version}_${s}_${m}.zip bin="$basedir/.tmp/$version/terraform" -- cgit v1.2.3