Skip to content

Commit 4db61c5

Browse files
committed
Merge pull request #224 from townsen/fix_duplicated_log_messages
Fix duplicate messages
2 parents a0fd9ba + bcbd57f commit 4db61c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/sshkit/formatters/pretty.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def write_command(command)
3434
uuid(command) + c.green("\t" + line)]
3535
original_output << "\n" unless line[-1] == "\n"
3636
end
37+
command.stdout = ''
3738
end
3839

3940
unless command.stderr.empty?
@@ -42,6 +43,7 @@ def write_command(command)
4243
uuid(command) + c.red("\t" + line)]
4344
original_output << "\n" unless line[-1] == "\n"
4445
end
46+
command.stderr = ''
4547
end
4648
end
4749

0 commit comments

Comments
 (0)