]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
fix small bug with empty commands
authorAilin Nemui <redacted>
Tue, 14 Mar 2017 23:16:53 +0000 (00:16 +0100)
committerAilin Nemui <redacted>
Tue, 14 Mar 2017 23:16:53 +0000 (00:16 +0100)
_testing/travis/update-scripts-yaml.pl

index 29925a353b07d1fe75c0a32c54b8fcb48ac152c4..e554f3359423bbbca5e5e174a3bf53d9dde1ce01 100644 (file)
@@ -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";
git clone https://git.99rst.org/PROJECT