Closed anttilaiti closed 3 years ago
If I run a successful shell command with ssh.execCommand using node-ssh 12.0.0, the exit status in result.code becomes null. It used to be 0 at least with node-ssh 6.0.0. If I run an unsuccesful shell command, the exit status is 127 like it should.
ssh.execCommand
result.code
null
0
127
Quite remarkable issue number: result.code Not Found :)
I think the issue is here: https://github.com/steelbrain/node-ssh/blob/main/src/index.ts#L373
This has been fixed in v12.0.1, thank you both!
If I run a successful shell command with
ssh.execCommand
using node-ssh 12.0.0, the exit status inresult.code
becomesnull
. It used to be0
at least with node-ssh 6.0.0. If I run an unsuccesful shell command, the exit status is127
like it should.