Skip to content

Commit

Permalink
Merge pull request #4016 from M0ses/fix_docker_up
Browse files Browse the repository at this point in the history
[backend] fix regex in container upload
  • Loading branch information
M0ses committed Oct 17, 2017
2 parents e96bbfb + fdebe5c commit ffee0b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -2533,12 +2533,14 @@ sub decompress_container {
my ($in) = @_;

my %ext2decomp = (
'tbz' => 'bzcat',
'tgz' => 'zcat',
'bz2' => 'bzcat',
'xz' => 'xzcat',
'gz' => 'zcat',
);
my $decomp;
$decomp = $ext2decomp{$1} if $in =~ /\.(.*?)$/;
$decomp = $ext2decomp{$1} if $in =~ /\.([^\.]+)$/;
$decomp ||= 'cat';

my ($fh, $tempfile) = tempfile();
Expand Down

0 comments on commit ffee0b1

Please sign in to comment.