From: Flavio Poletti Date: Thu, 11 Sep 2008 15:47:55 +0000 (+0200) Subject: Different output for STDOUT and STDERR. X-Git-Url: https://repo.or.cz/w/deployable.git/commitdiff_plain/f68dcc88ed7c9ceddad51ecc713f3f00909f1231 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. --- 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;