Skip to content

Commit

Permalink
* [e2e] change to parse from hashicorp website
Browse files Browse the repository at this point in the history
  • Loading branch information
lanfon72 authored and khushboo-rancher committed Nov 7, 2023
1 parent f4d6ca3 commit 4e07f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform_test_artifacts/terraform_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Where:
DOWNLOAD_URL=
if [ $# -eq 0 ] ; then
# lookup the latest release download URL
VER=$(curl -s https://api.github.com/repos/hashicorp/terraform/releases/latest | grep '"name":' | awk '{print $2}' | sed 's/.*v//' | sed 's/".*//')
VER=$(curl -s https://releases.hashicorp.com/terraform/ | grep -Po "href=\"/terraform/\K(.[^-]+?)(?=/)" | head -1)
DOWNLOAD_URL="https://releases.hashicorp.com/terraform/${VER}/terraform_${VER}_linux_amd64.zip"
elif [ $# -eq 1 ] ; then
VER=$1
Expand Down

0 comments on commit 4e07f2c

Please sign in to comment.