Skip to content

Commit

Permalink
fixup: quote command in case path contains space
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <mvasek@redhat.com>
  • Loading branch information
matejvasek committed Oct 3, 2023
1 parent 6307567 commit 66b0130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ssh/ssh_dialer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ SSH_BIN -o PasswordAuthentication=no -o ConnectTimeout=3 -o UserKnownHostsFile="
`
if runtime.GOOS == "windows" {
sshScript = `@echo off
SSH_BIN -o PasswordAuthentication=no -o ConnectTimeout=3 -o UserKnownHostsFile=%USERPROFILE%\.ssh\known_hosts %*
"SSH_BIN" -o PasswordAuthentication=no -o ConnectTimeout=3 -o UserKnownHostsFile=%USERPROFILE%\.ssh\known_hosts %*
`
}
sshScript = strings.ReplaceAll(sshScript, "SSH_BIN", sshAbsPath)
Expand Down

0 comments on commit 66b0130

Please sign in to comment.