Skip to content

Instantly share code, notes, and snippets.

@liukun

liukun/getgist

Forked from bmihaylov/getgist
Last active Aug 29, 2015
Embed
What would you like to do?
#!/usr/bin/env bash
if [[ "$1" =~ ^[0-9]+ ]]; then
curl -L "http://gist.github.com/$1/download" | tar zx --strip-components 1
exit 0
fi
curl -L "$1/download" | tar zx --strip-components 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.