summaryrefslogtreecommitdiff
path: root/etc/functions/extract
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:02:53 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:02:53 +0100
commit0e2caab754a0e931d00ea7d55b3b0e031b78f71b (patch)
tree756674428cb3f182c7d2acf1c2939ef0338fb487 /etc/functions/extract
parentf202ac80d9423ee7f86aaf2467f52ddd673ee9b1 (diff)
extract: Fixes
Diffstat (limited to 'etc/functions/extract')
-rw-r--r--etc/functions/extract6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/functions/extract b/etc/functions/extract
index a690a90..9312678 100644
--- a/etc/functions/extract
+++ b/etc/functions/extract
@@ -4,15 +4,15 @@
if [[ -f $1 ]] {
case $1 in
- *.(tar.bz2|bz2)) tar xvjf $* ;;
+ *.(tar.bz2|tbz2)) tar xvjf $* ;;
*.(tar.gz|tgz)) tar xvzf $* ;;
*.tar.lzma) unlzma $1 | tar xv ;;
*.ace) unace e $1 ;;
*.rar) unrar x $1 ;;
*.deb) ar -x $1 ;;
- *.bz2) bzip2 -d $1 ;;
+ *.bz2) bunzip2 $1 ;;
*.lzh) lha x $1 ;;
- *.gz) gunzip -d $1 ;;
+ *.gz) gunzip $1 ;;
*.tar) tar xvf $* ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;