Skip to content

Commit 085118b

Browse files
appleboyclaude
andcommitted
fix: detect Git Bash/MSYS/Cygwin uname output as windows platform
On windows-latest runners, bash steps run under Git Bash where uname -s reports MINGW64_NT-10.0-<build>, so platform detection rejected Windows runners with ERR_UNKNOWN_PLATFORM before the download step was even reached. Map mingw*/msys*/cygwin* to windows. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent f293264 commit 085118b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ function detect_client_info() {
2626

2727
case "${CLIENT_PLATFORM}" in
2828
darwin | linux | windows) ;;
29+
# Git Bash / MSYS2 / Cygwin on Windows runners report e.g. MINGW64_NT-10.0
30+
mingw* | msys* | cygwin*) CLIENT_PLATFORM="windows" ;;
2931
*) log_error "Unknown or unsupported platform: ${CLIENT_PLATFORM}. Supported platforms are Linux, Darwin, and Windows." "${ERR_UNKNOWN_PLATFORM}" ;;
3032
esac
3133

0 commit comments

Comments
 (0)