Skip to content

Commit

Permalink
Fix to work terraform_update function
Browse files Browse the repository at this point in the history
  • Loading branch information
gouf committed Aug 5, 2018
1 parent 408980f commit efe7252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bash_functions
Expand Up @@ -44,7 +44,7 @@ function gitsb {

function update_terraform {
ARCH=linux_amd64
VERSION=$(terraform version | tail -n 1 | cut -c 4-8)
VERSION="$(terraform -v | tail -n 1 | egrep -o '[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}')"

URL="https://releases.hashicorp.com/terraform/${VERSION}/terraform_${VERSION}_${ARCH}.zip"

Expand Down

0 comments on commit efe7252

Please sign in to comment.