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
|| $archive_file =~ .*\.iar$ \
|| $archive_file =~ .*\.oar$ \
|| $archive_file =~ .*\.tgz$ \
+ || $archive_file =~ .*\.ova$ \
]]; then
tar -tf $archive_file
elif [[ $archive_file =~ .*\.zip$ \
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
|| $archive_file =~ .*\.iar$ \
|| $archive_file =~ .*\.oar$ \
|| $archive_file =~ .*\.tgz$ \
+ || $archive_file =~ .*\.ova$ \
]]; then
tar -xf $archive_file &>/dev/null
elif [[ $archive_file =~ .*\.zip$ \