]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - rpc/dial.go
rpc: replace append to sshOpts with assignment in DialSSH()
[safcm/safcm.git] / rpc / dial.go
index 0782ab08e617933e4e2c369651253d11324e355f..909ec7e1aaf7e70193af9e05d29cbbdd07769f79 100644 (file)
@@ -51,7 +51,7 @@ func (c *Conn) DialSSH(user, host, sshConfig string) error {
 
        c.sshRemote = remote
        if sshConfig != "" {
-               c.sshOpts = append(c.sshOpts, "-F", sshConfig)
+               c.sshOpts = []string{"-F", sshConfig}
        }
        c.cmd = exec.Command("ssh",
                append(append([]string{}, c.sshOpts...),