From 37ad93186a66429fde4b05bb25cd1f6beb757241 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 28 Sep 2012 17:17:19 -0400 Subject: [PATCH] updated for ova files, compressed open virtual machine pack, compatible with tar. --- scripts/archival/listarch.sh | 3 ++- scripts/archival/unpack.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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$ \ -- 2.34.1