Skip to content

Instantly share code, notes, and snippets.

@raphink
Created December 10, 2013 22:49
Show Gist options
  • Save raphink/7901835 to your computer and use it in GitHub Desktop.
Save raphink/7901835 to your computer and use it in GitHub Desktop.
Download tarballs from the Puppet Forge to put in a local forge for https://github.com/dalen/simple-puppet-forge
#!/bin/bash
URL=$1
# ugly parsing
IFS='/' read prot empty serv user mod tarball <<<"$URL"
mkdir -p "$user/$mod"
wget "$URL" -O "$user/$mod/$user-$mod-$tarball"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment