Skip to content

Commit

Permalink
Filtering out alphas from the install script.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanthorpe committed Oct 23, 2018
1 parent eb0e242 commit 9fb6a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1d_Linux_install/terrafrom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function terraform-install() {
[[ -f ${HOME}/bin/terraform ]] && echo "`${HOME}/bin/terraform version` already installed at ${HOME}/bin/terraform" && return 0
LATEST_URL=$(curl -sL https://releases.hashicorp.com/terraform/index.json | jq -r '.versions[].builds[].url' | sort --version-sort | egrep -v 'rc|beta' | egrep 'linux.*amd64' |tail -1)
LATEST_URL=$(curl -sL https://releases.hashicorp.com/terraform/index.json | jq -r '.versions[].builds[].url' | sort --version-sort | egrep -v 'rc|beta|alpha' | egrep 'linux.*amd64' |tail -1)
curl ${LATEST_URL} > /tmp/terraform.zip
mkdir -p ${HOME}/bin
(cd ${HOME}/bin && unzip /tmp/terraform.zip)
Expand Down

0 comments on commit 9fb6a30

Please sign in to comment.