added iar, oar, jar as zip examples.
authorChris Koeritz <fred@gruntose.com>
Sun, 9 Sep 2012 22:37:11 +0000 (18:37 -0400)
committerChris Koeritz <fred@gruntose.com>
Sun, 9 Sep 2012 22:37:11 +0000 (18:37 -0400)
scripts/archival/unpack.sh

index 5641df960b108f74f4addfdb1ab77cf0c365e183..303937299475f38bb6335b4ca9e092c3870601e6 100644 (file)
@@ -56,7 +56,10 @@ if [[ $unpack_file =~ .*\.tar$ \
     || $unpack_file =~ .*\.tar\.bz2$ \
     || $unpack_file =~ .*\.tgz$ ]]; then
   tar -xf $unpack_file &>/dev/null
-elif [[ $unpack_file =~ .*\.zip$ ]]; then
+elif [[ $unpack_file =~ .*\.zip$ \
+    || $unpack_file =~ .*\.jar$ \
+    || $unpack_file =~ .*\.iar$ \
+    || $unpack_file =~ .*\.oar$ ]]; then
   unzip $unpack_file &>/dev/null
 fi
 save_err=$?