From: Rudolf Polzer Date: Thu, 22 Mar 2018 00:45:31 +0000 (-0700) Subject: midichannels.pl: support indented commands X-Git-Tag: xonotic-v0.8.5~173 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7fef51eb801453c7550e1b3ca8959274517e45cf;p=xonotic%2Fxonotic.git midichannels.pl: support indented commands --- diff --git a/misc/tools/midichannels.pl b/misc/tools/midichannels.pl index 4f47b9fd..0223e82a 100755 --- a/misc/tools/midichannels.pl +++ b/misc/tools/midichannels.pl @@ -60,7 +60,7 @@ for(@others) while() { chomp; - my @arg = split /\s+/, $_; + my @arg = grep { $_ ne '' } split /\s+/, $_; my $cmd = shift @arg; print "Executing: $cmd @arg\n"; if($cmd eq '#')