From c8fed2cca6d3052fb45c66d55495f51a9cfa983e Mon Sep 17 00:00:00 2001 From: Flavio Poletti Date: Thu, 11 Sep 2008 21:13:54 +0200 Subject: [PATCH] Changed documentation and fixed a bug --- deploy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy b/deploy index 41ec7f6..b9eb908 100755 --- a/deploy +++ b/deploy @@ -85,6 +85,7 @@ sub operate_on_host { $|++; print "$remote "; my ($out, $err, $exit) = $ssh->cmd($remote); + print "exit = $exit\n"; if ($config{stdout} && defined $out) { print {*STDOUT} $out; @@ -93,7 +94,6 @@ sub operate_on_host { print {*STDOUT} $err; } else { - print "exit = $exit\n"; for ([STDOUT => $out], [STDERR => $err]) { my ($type, $val) = @$_; next unless defined $val; @@ -239,7 +239,7 @@ following format: =back If any of L or L are present, then the relevant -channel is printed on STDOUT immediately after the first line of the +channel is printed on STDOUT immediately after the first two lines of the format above, unchanged. =head2 Example Runs @@ -264,11 +264,13 @@ something like this: If you pass L<--stderr> you will get: *** OPERATING ON foo.example.com *** + /tmp/our-deploy/bar.sh exit = 0 ls: baz: No such file or directory If you pass L<--stdout> you will get: *** OPERATING ON foo.example.com *** + /tmp/our-deploy/bar.sh exit = 0 Hi there! How are you all?!? -- 2.11.4.GIT