ci/aws: Document how to run a POSIX script on windows
This commit is contained in:
parent
2ffd1c51a4
commit
1e52115a6b
1 changed files with 7 additions and 3 deletions
|
|
@ -457,10 +457,14 @@ New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Wi
|
|||
Restart-Computer
|
||||
EOF
|
||||
|
||||
# Use the following to get a pure MSYS2 shell:
|
||||
# ssh -t "$CI_D2_WINDOWS_AMD64" 'C:\msys64\msys2_shell.cmd -defterm -here -no-start -mingw64'
|
||||
# Use the following to run a command in a pure MSYS2 shell:
|
||||
# To run a POSIX script:
|
||||
# ssh "$CI_D2_WINDOWS_AMD64" sh -s -- <<EOF
|
||||
# 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"'
|
||||
# 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
|
||||
# following will set the OpenSSH shell to MSYS2 instead of PowerShell.
|
||||
|
|
|
|||
Loading…
Reference in a new issue