From: Jameson Rollins Date: Thu, 30 Dec 2010 18:15:02 +0000 (-0500) Subject: remove trailing newline entirely from query-agent message output to stdout X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=daa2fca2f69126676f7ba287441cd50c77f211c9;p=monkeysphere-validation-agent.git remove trailing newline entirely from query-agent message output to stdout This goes a step further than a328802a (which only output newline to terminals) to just remove the extra newline altogether. It is not part of the original message, and query-agent is meant to me mostly used in pipeline anyway where the stdout is captured by another calling process. --- diff --git a/msva-query-agent b/msva-query-agent index 3ba8e2a..62e291a 100755 --- a/msva-query-agent +++ b/msva-query-agent @@ -36,7 +36,6 @@ if ($context eq '--help') { $client->log('verbose', "status: %s\n", $status); if (defined $ret) { printf("%s", $ret->{server}); - printf("\n") if (-t STDOUT); exit 0; } exit 1; @@ -67,7 +66,6 @@ if (defined $ret) { $client->log('info', "valid: %s\n", $ret->{valid}); $client->log('info', "server: %s\n", $ret->{server}); printf("%s", $ret->{message}); - printf("\n") if (-t STDOUT); exit 0 if ($ret->{valid}); }