ci/aws: Document how to run a POSIX script on windows

This commit is contained in:
Anmol Sethi 2022-12-16 00:59:50 -08:00
parent 2ffd1c51a4
commit 1e52115a6b
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA

View file

@ -457,10 +457,14 @@ New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Wi
Restart-Computer Restart-Computer
EOF EOF
# Use the following to get a pure MSYS2 shell: # To run a POSIX script:
# ssh -t "$CI_D2_WINDOWS_AMD64" 'C:\msys64\msys2_shell.cmd -defterm -here -no-start -mingw64' # ssh "$CI_D2_WINDOWS_AMD64" sh -s -- <<EOF
# Use the following to run a command in a pure MSYS2 shell: # which wix
# EOF
# To run a command in a pure MSYS2 shell:
# ssh "$CI_D2_WINDOWS_AMD64" 'C:\msys64\msys2_shell.cmd -defterm -here -no-start -mingw64 -c "echo hi"' # ssh "$CI_D2_WINDOWS_AMD64" 'C:\msys64\msys2_shell.cmd -defterm -here -no-start -mingw64 -c "echo hi"'
# To run a pure MSYS2 shell:
# ssh -t "$CI_D2_WINDOWS_AMD64" 'C:\msys64\msys2_shell.cmd -defterm -here -no-start -mingw64'
# In case MSYS2 improves in the future and allows for noninteractive commands the # In case MSYS2 improves in the future and allows for noninteractive commands the
# following will set the OpenSSH shell to MSYS2 instead of PowerShell. # following will set the OpenSSH shell to MSYS2 instead of PowerShell.