From: Ailin Nemui Date: Tue, 14 Mar 2017 23:16:53 +0000 (+0100) Subject: fix small bug with empty commands X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=7653befcf57e66cf78dd9216d31619e362805796;p=irssi-scripts.irssi.org.git fix small bug with empty commands --- diff --git a/_testing/travis/update-scripts-yaml.pl b/_testing/travis/update-scripts-yaml.pl index 29925a3..e554f33 100644 --- a/_testing/travis/update-scripts-yaml.pl +++ b/_testing/travis/update-scripts-yaml.pl @@ -47,9 +47,10 @@ for my $file () { = join ' ', @$modules if 'ARRAY' eq ref $modules; my $commands = delete $newmeta{$filename}{commands}; - $newmeta{$filename}{commands} - = join ' ', grep { !/ / } @$commands + my @commands = grep { !/ / } @$commands if 'ARRAY' eq ref $commands; + $newmeta{$filename}{commands} = "@commands" + if @commands; } elsif (exists $oldmeta{$filename}) { print "META-INF FOR $base NOT FOUND\n";