iankelling.org
/
git
/
small-misc-bash
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add jar and xpi
[small-misc-bash]
/
ex
diff --git
a/ex
b/ex
index 159297b10c421a7ba8867211767e2f2d9fc61c2e..e0ea044c4698753ea6ded729ea3d4ba9617ba1ca 100755
(executable)
--- a/
ex
+++ b/
ex
@@
-35,7
+35,7
@@
to try it out sometime."
*.bz2 ) bunzip2 "$x" ;;
*.gz ) gunzip "$x" ;;
*.tar ) tar xf "$x" ;;
*.bz2 ) bunzip2 "$x" ;;
*.gz ) gunzip "$x" ;;
*.tar ) tar xf "$x" ;;
- *.zip ) unzip "$x" ;;
+ *.zip
|*.xpi
) unzip "$x" ;;
*.Z ) uncompress "$x" ;;
*.7z ) 7za x "$x" ;;
*.deb ) ar x "$x" ;;
*.Z ) uncompress "$x" ;;
*.7z ) 7za x "$x" ;;
*.deb ) ar x "$x" ;;
@@
-58,6
+58,7
@@
to try it out sometime."
*.r[0-9][0-9]|*.rar ) unrar x "$x" ;;
*.dsc) dpkg-source -x "$x" ;;
*.sfs) $super unsquashfs "$x" ;;
*.r[0-9][0-9]|*.rar ) unrar x "$x" ;;
*.dsc) dpkg-source -x "$x" ;;
*.sfs) $super unsquashfs "$x" ;;
+ *.jar) jar xf "$x" ;;
*) echo "I don't know how to extract $x";;
esac
done
*) echo "I don't know how to extract $x";;
esac
done