Skip to content

Commit 6785561

Browse files
authored
Merge pull request #4762 from github/copilot/fix-unsupported-os
install: report unsupported operating systems
2 parents d7ede79 + 752496d commit 6785561

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ set -e
1212
echo "Installing GitHub Copilot CLI..."
1313

1414
# Detect platform
15-
case "$(uname -s || echo "")" in
15+
OS="$(uname -s || echo "")"
16+
case "$OS" in
1617
Darwin*) PLATFORM="darwin" ;;
1718
Linux*) PLATFORM="linux" ;;
18-
*)
19+
CYGWIN*|MINGW*|MSYS*)
1920
if command -v winget >/dev/null 2>&1; then
2021
echo "Windows detected. Installing via winget..."
2122
winget install GitHub.Copilot
@@ -25,6 +26,7 @@ case "$(uname -s || echo "")" in
2526
exit 1
2627
fi
2728
;;
29+
*) echo "Error: Unsupported operating system $OS" >&2 ; exit 1 ;;
2830
esac
2931

3032
# Detect architecture

0 commit comments

Comments
 (0)