Skip to content

Commit 1068d08

Browse files
authored
Merge pull request #68 from huyangcheng/huyangcheng-patch-1
fix windows path splicing
2 parents 8e67b4e + 6496966 commit 1068d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"net"
99
"os"
1010
"os/user"
11-
"path"
11+
"path/filepath"
1212
"strconv"
1313
"strings"
1414
"syscall"
@@ -57,7 +57,7 @@ func genSSHConfig(node *Node) *defaultClient {
5757

5858
var pemBytes []byte
5959
if node.KeyPath == "" {
60-
pemBytes, err = ioutil.ReadFile(path.Join(u.HomeDir, ".ssh/id_rsa"))
60+
pemBytes, err = ioutil.ReadFile(filepath.Join(u.HomeDir, ".ssh/id_rsa"))
6161
} else {
6262
pemBytes, err = ioutil.ReadFile(node.KeyPath)
6363
}

0 commit comments

Comments
 (0)