Created
February 1, 2013 12:39
-
-
Save aaronbassett/4691073 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# This is untested but you get the basic idea | |
# Why? Cause fuck dependencies that's why ;) | |
if [[ $# -lt 1 ]]; then | |
echo "Usage: $0 INFILE" | |
exit 1 | |
fi | |
if [[ $1 =~ \.tar\.bz2$ ]] ; then tar xfj $1; fi | |
if [[ $1 =~ \.tar\.gz$ ]] ; then tar xzf $1; fi | |
if [[ $1 =~ \.tar$ ]] ; then tar xf $1; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment