From 94c9b231edd1c10eb3a5758b11891833a92c1484 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 13 Mar 2012 13:39:01 +0100 Subject: extract: proper tar usage --- etc/functions/extract | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'etc/functions/extract') 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} ;; -- cgit v1.2.3