summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-03-13 13:39:01 +0100
committerDaniel Friesel <derf@finalrewind.org>2012-03-13 13:39:01 +0100
commit94c9b231edd1c10eb3a5758b11891833a92c1484 (patch)
tree13d4b7094e7d624740c68af4c98b189d2a7c2ff4 /etc/functions
parentcaa4636aa2cee263214cd9c4d0af32104743465a (diff)
extract: proper tar usage
Diffstat (limited to 'etc/functions')
-rw-r--r--etc/functions/extract4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/functions/extract b/etc/functions/extract
index 2156dab..53fdc87 100644
--- a/etc/functions/extract
+++ b/etc/functions/extract
@@ -4,9 +4,7 @@
if [[ -f ${1} ]] {
case ${1} in
- *.(tar.bz2|tbz2)) tar xvjf ${*} ;;
- *.(tar.gz|tgz)) tar xvzf ${*} ;;
- *.tar.lzma) unlzma ${1} | tar xv ;;
+ *.tar*) tar xvf ${*} ;;
*.ace) unace e ${1} ;;
*.rar) unrar x ${1} ;;
*.deb) ar -x ${1} ;;