Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
keep the exitcode 1 available for the next command
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi4ever authored and jamis committed Oct 24, 2010
1 parent 11a1ce0 commit 38855d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/net/ssh/shell/process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def run

cmd = command.dup
cmd << ";" if cmd !~ /[;&]$/
cmd << " echo #{manager.separator} $?"
cmd << " DONTEVERUSETHIS=$?; echo #{manager.separator} $DONTEVERUSETHIS; echo \"exit $DONTEVERUSETHIS\"|sh"

send_data(cmd + "\n")
callback.call(self) if callback
Expand Down Expand Up @@ -109,4 +109,4 @@ def finished!(status)
end
end

end; end; end
end; end; end

0 comments on commit 38855d1

Please sign in to comment.