From: Sven Hoexter Date: Sun, 29 Mar 2020 11:49:02 +0000 (+0200) Subject: Merge branch 'master' of ssh://git.sven.stormbind.net/var/lib/git/sven/scripts X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fscripts.git;a=commitdiff_plain;h=4a7dca7a3d627963bb92af33c33b9b6577f5880f;hp=7ca0b9d86e1215127b48a1465cd5c8afad9171b9 Merge branch 'master' of ssh://git.sven.stormbind.net/var/lib/git/sven/scripts --- diff --git a/artifactory/terraform-dl.sh b/artifactory/terraform-dl.sh index 19e5e34..f62be23 100755 --- a/artifactory/terraform-dl.sh +++ b/artifactory/terraform-dl.sh @@ -1,7 +1,7 @@ #!/bin/sh LATEST_LINK="https://github.com/hashicorp/terraform/releases/latest" -VERSION="$(curl -si ${LATEST_LINK} | grep Location | grep -Po '[0-9]\.[0-9]{1,2}\.[0-9]+')" +VERSION="$(curl -sI ${LATEST_LINK} | grep -i '^Location' | grep -Po '[0-9]\.[0-9]{1,2}\.[0-9]+')" BASE_DOWNLOAD="https://releases.hashicorp.com/terraform/${VERSION}/" ARCH="amd64" OS="linux"