From daa2fca2f69126676f7ba287441cd50c77f211c9 Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Thu, 30 Dec 2010 13:15:02 -0500 Subject: [PATCH] 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. --- msva-query-agent | 2 -- 1 file changed, 2 deletions(-) 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}); } -- 2.26.2