updated for ova files, compressed open virtual machine pack, compatible with tar.
[feisty_meow.git] / scripts / archival / unpack.sh
index 103ec1932b66269da79ae19724c773a8ae357886..de82c021e29a2b717c0cb61f8c65d01a4012e812 100644 (file)
@@ -20,7 +20,7 @@ if [ -z "$archive_file" ]; then
   exit 1
 fi
 if [ ! -f "$archive_file" ]; then
-  echo "The file specified for unpacking cannot be located: $archive_file"
+  echo "The file specified cannot be located: $archive_file"
   exit 1
 fi
 unpack_dir="$1"; shift
@@ -57,6 +57,7 @@ if [[ $archive_file =~ .*\.tar$ \
     || $archive_file =~ .*\.iar$ \
     || $archive_file =~ .*\.oar$ \
     || $archive_file =~ .*\.tgz$ \
+    || $archive_file =~ .*\.ova$ \
     ]]; then
   tar -xf $archive_file &>/dev/null
 elif [[ $archive_file =~ .*\.zip$ \