evanwalsh (owner)

Revisions

gist: 41876 Download_button fork
public
Public Clone URL: git://gist.github.com/41876.git
Embed All Files: show embed
get-git.sh #
1
2
3
4
5
6
7
8
#!/bin/bash
# Let's get a git repo on a host that doesn't have it
curl -L http://github.com/$1/$2/tarball/master -o $1-$2.tar.gz > /dev/null
echo "Download of tarball complete."
tar -xf $1-$2.tar.gz > /dev/null
rm $1-$2.tar.gz
echo "Untarring of tarball complete."
echo "Feel free to change to the new dir"