From f68dcc88ed7c9ceddad51ecc713f3f00909f1231 Mon Sep 17 00:00:00 2001 From: Flavio Poletti Date: Thu, 11 Sep 2008 17:47:55 +0200 Subject: [PATCH] Different output for STDOUT and STDERR. Changed output, now all STDOUT lines are prepended with "STDOUT " and all STDERR lines are prepended with "STDERR ". This eases parsing the output of deploy from other scripts. --- deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy b/deploy index 3c46558..acc00a4 100755 --- a/deploy +++ b/deploy @@ -84,8 +84,8 @@ sub operate_on_host { my ($type, $val) = @$_; next unless defined $val; $val =~ s{\s+\z}{}mxs; - $val =~ s{^}{| }gmxs; - print "+ $type\n|\n$val\n|\n+ end of $type\n\n"; + $val =~ s{^}{$type }gmxs; + print $val, "\n\n"; } ## end for ([STDOUT => $out], ... return; -- 2.11.4.GIT