summaryrefslogtreecommitdiffstats
path: root/_testing/travis
diff options
context:
space:
mode:
authorAilin Nemui2017-03-14 23:27:18 +0100
committerAilin Nemui2017-03-14 23:27:30 +0100
commit43ec4348ea43312073cd48312278812b63e4f850 (patch)
tree61919d1d6c03a12fdb78b5d10ee926705d5496b8 /_testing/travis
parent2ea55586c7a5a90b30a9e5b7c40da5b95bc046d7 (diff)
downloadscripts.irssi.org-43ec4348ea43312073cd48312278812b63e4f850.tar.bz2
autocommit script commands
Diffstat (limited to '_testing/travis')
-rw-r--r--_testing/travis/update-scripts-yaml.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/_testing/travis/update-scripts-yaml.pl b/_testing/travis/update-scripts-yaml.pl
index 0ed52ac..29925a3 100644
--- a/_testing/travis/update-scripts-yaml.pl
+++ b/_testing/travis/update-scripts-yaml.pl
@@ -46,6 +46,10 @@ for my $file (<scripts/*.pl>) {
$newmeta{$filename}{modules}
= join ' ', @$modules
if 'ARRAY' eq ref $modules;
+ my $commands = delete $newmeta{$filename}{commands};
+ $newmeta{$filename}{commands}
+ = join ' ', grep { !/ / } @$commands
+ if 'ARRAY' eq ref $commands;
}
elsif (exists $oldmeta{$filename}) {
print "META-INF FOR $base NOT FOUND\n";