Fix to extract all types of tars at once

This commit is contained in:
Ilia Rostovtsev
2021-11-08 13:04:05 +03:00
parent 1e55e74088
commit 416afebffe

View File

@@ -490,7 +490,7 @@ foreach my $fref (@{$files_to_extract}) {
my $archive_type = mimetype($cwd . '/' . $name);
if ($archive_type =~ /x-tar/ || $archive_type =~ /x-compressed-tar/) {
if ($archive_type =~ /x-tar/ || $archive_type =~ /-compressed-tar/) {
my $tar_cmd = has_command('tar');
if (!$tar_cmd) {
push(@errors, &text('extract_cmd_not_avail', "<tt>" . &html_escape($name) . "</tt>", '<tt>tar</tt>'));