ci/aws: Use bash as default shell on windows

C:\msys64\msys2_shell.cmd -defterm -here -no-start -mingw64 is totally
screwed but executing bash directly works perfectly.
This commit is contained in:
Anmol Sethi 2022-12-18 20:15:40 -08:00
parent 6f8475804c
commit d5ba8c658f
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA

View file

@ -455,7 +455,7 @@ Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Users\Administrator\.dotnet\tools\pwsh.exe" -PropertyType String -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\msys64\usr\bin\bash.exe" -PropertyType String -Force
ConvertFrom-Json -InputObject @'
$(perl -pe 's#\n#\r\n#' "$ID_PUB_PATH" | jq -Rs .)