-if [[ $archive_file =~ .*\.tar$ \
- || $archive_file =~ .*\.tar\.gz$ \
- || $archive_file =~ .*\.tar\.bz2$ \
- || $archive_file =~ .*\.iar$ \
- || $archive_file =~ .*\.oar$ \
- || $archive_file =~ .*\.tgz$ \
- || $archive_file =~ .*\.ova$ \
- || $archive_file =~ .*\.snarf$ \
+if [[ "$archive_file" =~ .*\.tar$ \
+ || "$archive_file" =~ .*\.tar\.gz$ \
+ || "$archive_file" =~ .*\.tar\.bz2$ \
+ || "$archive_file" =~ .*\.iar$ \
+ || "$archive_file" =~ .*\.oar$ \
+ || "$archive_file" =~ .*\.tgz$ \
+ || "$archive_file" =~ .*\.ova$ \
+ || "$archive_file" =~ .*\.snarf$ \