Permalink
Browse files

Replaced string insertion with quoted string insertion in string form…

…atting of IdentityFile path.

Signed-off-by: Herberts Markuns <herbis33@gmail.com>
  • Loading branch information...
Herbis authored and shin- committed Oct 4, 2017
1 parent c8407e9 commit b1c7a3c1342a768be9d3f63d3b55a8888fe8de14
Showing with 1 addition and 1 deletion.
  1. +1 −1 commands/scp.go
View
@@ -177,7 +177,7 @@ func getInfoForScpArg(hostAndPath string, hostInfoLoader HostInfoLoader) (h Host
}
if h.GetSSHKeyPath() != "" {
args = append(args, "-o", fmt.Sprintf(`IdentityFile="%s"`, h.GetSSHKeyPath()))
args = append(args, "-o", fmt.Sprintf("IdentityFile=%q", h.GetSSHKeyPath()))
}
return

0 comments on commit b1c7a3c

Please sign in to comment.