From 7653befcf57e66cf78dd9216d31619e362805796 Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Wed, 15 Mar 2017 00:16:53 +0100 Subject: fix small bug with empty commands --- _testing/travis/update-scripts-yaml.pl | 5 +++-- 1 file 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 () { = 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"; -- cgit v1.2.3