Browse code

Support for more archive formats.

SuprDewd authored on 25/12/2010 at 13:28:16
Showing 1 changed files
... ...
@@ -43,6 +43,8 @@ function extract() {
43 43
     case $1 in
44 44
       *.tar.bz2) tar xvjf $1;;
45 45
       *.tar.gz) tar xvzf $1;;
46
+      *.tar.xz) tar xvJf $1;;
47
+      *.tar.lzma) tar --lzma -xvf $1;;
46 48
       *.bz2) bunzip $1;;
47 49
       *.rar) unrar $1;;
48 50
       *.gz) gunzip $1;;