summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-04 18:49:26 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-04 18:49:26 +0100
commit0acec246f225db567efcea5b904885a412ba56b8 (patch)
tree84a707279769e6d1b906df2e297d6a95272371b1 /etc
parent10d3bfa1a32611c382d0bc7044ebd219f20e26c4 (diff)
extr: A little cleanup
Diffstat (limited to 'etc')
-rwxr-xr-xetc/functions/extr6
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/functions/extr b/etc/functions/extr
index eee5ad2..4962f94 100755
--- a/etc/functions/extr
+++ b/etc/functions/extr
@@ -8,8 +8,8 @@ function confirm_shar {
if [[ -f $1 ]] {
case $1 in
- *.tar.bz2) tar xvjf $1 ;;
- *.tar.gz) tar xvzf $1 ;;
+ *.(tar.bz2tbz2)) tar xvjf $1 ;;
+ *.(tar.gz|tgz)) tar xvzf $1 ;;
*.ace) unace e $1 ;;
*.rar) unrar x $1 ;;
*.deb) ar -x $1 ;;
@@ -17,8 +17,6 @@ if [[ -f $1 ]] {
*.lzh) lha x $1 ;;
*.gz) gunzip -d $1 ;;
*.tar) tar xvf $1 ;;
- *.tgz) tar xvzf $1 ;;
- *.tbz2) tar xvjf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.shar) confirm_shar && sh $1 ;;