updated for ova files, compressed open virtual machine pack, compatible with tar.
authorChris Koeritz <fred@gruntose.com>
Fri, 28 Sep 2012 21:17:19 +0000 (17:17 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 28 Sep 2012 21:17:19 +0000 (17:17 -0400)
scripts/archival/listarch.sh
scripts/archival/unpack.sh

index 6c621611897a8277241d5dc728d4a21e2fc8f4a9..88cc9678820f27857bcf1bde600aaf2b63de3495 100644 (file)
@@ -20,7 +20,7 @@ if [ -z "$archive_file" ]; then
   exit 1
 fi
 if [ ! -f "$archive_file" ]; then
-  echo "The file specified for listing cannot be located: $archive_file"
+  echo "The file specified cannot be located: $archive_file"
   exit 1
 fi
 
@@ -43,6 +43,7 @@ if [[ $archive_file =~ .*\.tar$ \
     || $archive_file =~ .*\.iar$ \
     || $archive_file =~ .*\.oar$ \
     || $archive_file =~ .*\.tgz$ \
+    || $archive_file =~ .*\.ova$ \
     ]]; then
   tar -tf $archive_file
 elif [[ $archive_file =~ .*\.zip$ \
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$ \