From 5c48ab509f278aecbb3d205747b45f3dd663455d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 1 Nov 2008 10:18:00 +0100 Subject: extr: Added cpio and lzma --- etc/functions/extr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/functions/extr b/etc/functions/extr index 2ba4d90..b3d5f33 100644 --- a/etc/functions/extr +++ b/etc/functions/extr @@ -22,6 +22,8 @@ if [[ -f $1 ]] { *.zip) unzip $1 ;; *.Z) uncompress $1 ;; *.shar) confirm_shar && sh $1 ;; + *.cpio) cpio --no-absolute-filenames -idv < $1 ;; + *.lzma) unlzma $1 ;; *) echo "Unknown archive type: $1"; return 2 ;; esac } else { -- cgit v1.2.3