This commit is contained in:
Kovid Goyal
2023-03-05 13:41:36 +05:30
parent c88a171b28
commit a0d30f4dd8
2 changed files with 11 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ var SSHExe = (&utils.Once[string]{Run: func() string {
if ans != "" {
return ans
}
ans = utils.Which("ssh", "/usr/local/bin", "/opt/bin", "/opt/homebrew/bin", "/usr/bin", "/bin", "/usr/sbin", "/sbin")
ans = utils.Which("ssh", utils.DefaultExeSearchPaths()...)
if ans == "" {
ans = "ssh"
}