mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: sftp1 to sftp
This commit is contained in:
@@ -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
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user