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