mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Add sshd path check for bridge
This commit is contained in:
parent
d5e9b64166
commit
cfed0302bc
1 changed files with 5 additions and 2 deletions
|
@ -178,8 +178,11 @@ public class SshLocalBridge {
|
|||
.resolve("sshd")
|
||||
.toString();
|
||||
} else {
|
||||
var exec = sc.executeSimpleStringCommand(sc.getShellDialect().getWhichCommand("sshd"));
|
||||
return exec;
|
||||
var exec = sc.command(sc.getShellDialect().getWhichCommand("sshd")).readStdoutIfPossible();
|
||||
if (exec.isEmpty()) {
|
||||
throw ErrorEvent.expected(new IllegalStateException("No sshd executable found in PATH. The SSH terminal bridge requires a local ssh server"));
|
||||
}
|
||||
return exec.get();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue