[windows] Fix syntax of ssh-keyscan (#12223)

Remove extraneous spaces between key types to fetch
This commit is contained in:
Trey Valenta
2025-06-26 10:48:10 -07:00
committed by GitHub
parent 3c95826d25
commit 9c70ef5026

View File

@@ -46,7 +46,7 @@ if ($LASTEXITCODE -ne 0) {
Add-MachinePathItem "C:\Program Files\Git\bin" Add-MachinePathItem "C:\Program Files\Git\bin"
# Add well-known SSH host keys to ssh_known_hosts # Add well-known SSH host keys to ssh_known_hosts
ssh-keyscan -t rsa, ecdsa, ed25519 github.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts" ssh-keyscan -t rsa,ecdsa,ed25519 github.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts"
ssh-keyscan -t rsa ssh.dev.azure.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts" ssh-keyscan -t rsa ssh.dev.azure.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts"
Invoke-PesterTests -TestFile "Git" Invoke-PesterTests -TestFile "Git"