diff options
| author | Ailin Nemui | 2017-03-15 00:16:53 +0100 | 
|---|---|---|
| committer | Ailin Nemui | 2017-03-15 00:16:53 +0100 | 
| commit | 7653befcf57e66cf78dd9216d31619e362805796 (patch) | |
| tree | d9495429e989497544b28c91233aa60cea76913c | |
| parent | b3bb8e127cebcfb8079e8911915fb7ef3d31b553 (diff) | |
| download | scripts.irssi.org-7653befcf57e66cf78dd9216d31619e362805796.tar.bz2 | |
fix small bug with empty commands
| -rw-r--r-- | _testing/travis/update-scripts-yaml.pl | 5 | 
1 files changed, 3 insertions, 2 deletions
| 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 (<scripts/*.pl>) {  	    = 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"; | 
