mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
[rtns] Capture exitCode from ssh_channel_get_exit_status (#7541)
This commit is contained in:
@@ -146,7 +146,7 @@ std::string SshSession::ExecuteResult(std::string_view cmd, int* exitStatus) {
|
||||
#if LIBSSH_VERSION_MAJOR == 0 && LIBSSH_VERSION_MINOR >= 11
|
||||
ssh_channel_get_exit_state(channel, &exitCode, nullptr, nullptr);
|
||||
#else
|
||||
ssh_channel_get_exit_status(channel);
|
||||
exitCode = ssh_channel_get_exit_status(channel);
|
||||
#endif
|
||||
INFO("{} {}", exitCode, cmd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user