Created
December 10, 2013 22:49
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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