Skip to content

Instantly share code, notes, and snippets.

@rbanffy
Last active September 25, 2017 11:47
Show Gist options
  • Save rbanffy/0da0ec07096ee94111320ef6fa366877 to your computer and use it in GitHub Desktop.
Save rbanffy/0da0ec07096ee94111320ef6fa366877 to your computer and use it in GitHub Desktop.
Quick and very dirty Terraform updater
#! /bin/sh
curl -s -o /tmp/tf.zip $(curl -s https://www.terraform.io/downloads.html | grep darwin_amd64.zip | sed -e s/.*\=\"//g | sed s/\"\>.*//g)
unzip /tmp/tf.zip
sudo mv terraform $(which terraform)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment