steelbrain / node-ssh

SSH2 with Promises
MIT License
948 stars 94 forks source link

Fix exit code handling #406

Closed maquak closed 3 years ago

maquak commented 3 years ago

As reported here: https://github.com/steelbrain/node-ssh/issues/404

When return code was 0, null was returned in promise result. This should fix this.

maquak commented 3 years ago

Fixes steelbrain/node-ssh#404

ltinerary commented 3 years ago

image I learned a new lesson today. Thanks a lot.

steelbrain commented 3 years ago

Thank you very much for identifying the root cause of the bug @maquak I'll merge this and credit you