Skip to content

Instantly share code, notes, and snippets.

@dawud
Created November 20, 2018 14:58
Show Gist options
  • Select an option

  • Save dawud/891646256a909ca9389e3fc6d26f8249 to your computer and use it in GitHub Desktop.

Select an option

Save dawud/891646256a909ca9389e3fc6d26f8249 to your computer and use it in GitHub Desktop.
#/usr/bin/env bash
url=$(curl -sL https://www.packer.io/downloads.html | \
awk '$0~/<a.*packer_.*_linux_amd64.zip/{gsub(/.*href="/,"");gsub(/".*/,"");print $0;exit}')
curl -sSL $url | funzip > /usr/local/bin/packer
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment