summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-08 21:44:40 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-08 21:44:40 +0100
commit78ee4395d03e0f9456cea1b4bbe17d38b556f99a (patch)
treef9b67a7325d0f24510b537590b793ea8b7158b02 /etc/functions
parentdb28a40b716af305e570424a1516d1ad396fcaf5 (diff)
extr: Fixes pointed out by mxey
Diffstat (limited to 'etc/functions')
-rwxr-xr-xetc/functions/extr3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/functions/extr b/etc/functions/extr
index 4962f94..4e386d5 100755
--- a/etc/functions/extr
+++ b/etc/functions/extr
@@ -8,8 +8,9 @@ function confirm_shar {
if [[ -f $1 ]] {
case $1 in
- *.(tar.bz2tbz2)) tar xvjf $1 ;;
+ *.(tar.bz2|bz2)) tar xvjf $1 ;;
*.(tar.gz|tgz)) tar xvzf $1 ;;
+ *.tar.lzma) unlzma $1 | tar xv ;;
*.ace) unace e $1 ;;
*.rar) unrar x $1 ;;
*.deb) ar -x $1 ;;