More work on porting diff kitten

This commit is contained in:
Kovid Goyal
2023-03-16 21:46:00 +05:30
parent d208670172
commit 3c550bcd28
6 changed files with 172 additions and 19 deletions

View File

@@ -18,15 +18,7 @@ import (
var _ = fmt.Print
var SSHExe = (&utils.Once[string]{Run: func() string {
ans := utils.Which("ssh")
if ans != "" {
return ans
}
ans = utils.Which("ssh", utils.DefaultExeSearchPaths()...)
if ans == "" {
ans = "ssh"
}
return ans
return utils.FindExe("ssh")
}}).Get
var SSHOptions = (&utils.Once[map[string]string]{Run: func() (ssh_options map[string]string) {