fix: sftp1 to sftp

This commit is contained in:
hstyi
2025-02-15 14:43:46 +08:00
committed by GitHub
parent 3510c6600d
commit 7e0c7d8891

View File

@@ -29,9 +29,9 @@ class SFTPPtyTerminalTab(windowScope: WindowScope, host: Host) : PtyHostTerminal
companion object {
val canSupports by lazy {
val process = if (SystemInfo.isWindows) {
ProcessBuilder("cmd.exe", "/c", "where", "sftp1").start()
ProcessBuilder("cmd.exe", "/c", "where", "sftp").start()
} else {
ProcessBuilder("which", "sftp1").start()
ProcessBuilder("which", "sftp").start()
}
process.waitFor()
return@lazy process.exitValue() == 0