From 34539015812412e4c6c8399efd084027b3e4740e Mon Sep 17 00:00:00 2001 From: devm33 <1682753+devm33@users.noreply.github.com> Date: Tue, 8 Sep 2026 01:25:59 +0000 Subject: [PATCH 1/2] install: report unsupported operating systems Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b63486dd..f99f63a5 100755 --- a/install.sh +++ b/install.sh @@ -15,7 +15,7 @@ echo "Installing GitHub Copilot CLI..." case "$(uname -s || echo "")" in Darwin*) PLATFORM="darwin" ;; Linux*) PLATFORM="linux" ;; - *) + CYGWIN*|MINGW*|MSYS*) if command -v winget >/dev/null 2>&1; then echo "Windows detected. Installing via winget..." winget install GitHub.Copilot @@ -25,6 +25,7 @@ case "$(uname -s || echo "")" in exit 1 fi ;; + *) echo "Error: Unsupported operating system $(uname -s)" >&2 ; exit 1 ;; esac # Detect architecture From 752496d8c1e5db3ff9e7ff2dc460edc3e86d38c2 Mon Sep 17 00:00:00 2001 From: devm33 <1682753+devm33@users.noreply.github.com> Date: Tue, 8 Sep 2026 01:33:55 +0000 Subject: [PATCH 2/2] install: cache detected operating system Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index f99f63a5..8a135265 100755 --- a/install.sh +++ b/install.sh @@ -12,7 +12,8 @@ set -e echo "Installing GitHub Copilot CLI..." # Detect platform -case "$(uname -s || echo "")" in +OS="$(uname -s || echo "")" +case "$OS" in Darwin*) PLATFORM="darwin" ;; Linux*) PLATFORM="linux" ;; CYGWIN*|MINGW*|MSYS*) @@ -25,7 +26,7 @@ case "$(uname -s || echo "")" in exit 1 fi ;; - *) echo "Error: Unsupported operating system $(uname -s)" >&2 ; exit 1 ;; + *) echo "Error: Unsupported operating system $OS" >&2 ; exit 1 ;; esac # Detect architecture