From: Chris Koeritz Date: Fri, 28 Sep 2012 21:17:19 +0000 (-0400) Subject: updated for ova files, compressed open virtual machine pack, compatible with tar. X-Git-Tag: 2.140.90~1213 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=37ad93186a66429fde4b05bb25cd1f6beb757241;p=feisty_meow.git updated for ova files, compressed open virtual machine pack, compatible with tar. --- diff --git a/scripts/archival/listarch.sh b/scripts/archival/listarch.sh index 6c621611..88cc9678 100644 --- a/scripts/archival/listarch.sh +++ b/scripts/archival/listarch.sh @@ -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$ \ diff --git a/scripts/archival/unpack.sh b/scripts/archival/unpack.sh index 103ec193..de82c021 100644 --- a/scripts/archival/unpack.sh +++ b/scripts/archival/unpack.sh @@ -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$ \