-if [[ $unpack_file =~ .*\.tar$ \
- || $unpack_file =~ .*\.tar\.gz$ \
- || $unpack_file =~ .*\.tar\.bz2$ \
- || $unpack_file =~ .*\.tgz$ ]]; then
- tar -xf $unpack_file &>/dev/null
-elif [[ $unpack_file =~ .*\.zip$ \
- || $unpack_file =~ .*\.jar$ \
- || $unpack_file =~ .*\.iar$ \
- || $unpack_file =~ .*\.oar$ ]]; then
- unzip $unpack_file &>/dev/null
+if [[ $archive_file =~ .*\.tar$ \
+ || $archive_file =~ .*\.tar\.gz$ \
+ || $archive_file =~ .*\.tar\.bz2$ \
+ || $archive_file =~ .*\.iar$ \
+ || $archive_file =~ .*\.oar$ \
+ || $archive_file =~ .*\.tgz$ \
+ || $archive_file =~ .*\.ova$ \
+ ]]; then
+ tar -xf $archive_file &>/dev/null
+elif [[ $archive_file =~ .*\.zip$ \
+ || $archive_file =~ .*\.epub$ \
+ || $archive_file =~ .*\.odt$ \
+ || $archive_file =~ .*\.jar$ \
+ || $archive_file =~ .*\.war$ \
+ ]]; then
+ unzip $archive_file &>/dev/null