Prevent extraneous empty lines in compiler output
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Format.pm
index a3b8a65fedd6af3fab66f889b79b3acccdefd9ca..cca52ed5fc437700b38aa381e61fed7e709d51b4 100644 (file)
@@ -82,7 +82,7 @@ sub mkrun{
                while (my ($fd, $file) = $it->()) {
                        push @args, "--fd=$fd $file";
                }
-               execlist $basename, @args, "./$basename"
+               execlist $basename, @args, '--', "./$basename", @{$args{args}}
        }
 }
 
@@ -96,7 +96,7 @@ sub prepare{
                die "Compile error\n"
        } finally {
                $Gruntmaster::Daemon::errors .= read_file 'errors';
-               $Gruntmaster::Daemon::errors .= "\n";
+               $Gruntmaster::Daemon::errors .= "\n" if -s 'errors';
                unlink 'errors';
        };
 }
This page took 0.009728 seconds and 4 git commands to generate.