2 parents d7ede79 + 752496d commit 6785561Copy full SHA for 6785561
1 file changed
install.sh
@@ -12,10 +12,11 @@ set -e
12
echo "Installing GitHub Copilot CLI..."
13
14
# Detect platform
15
-case "$(uname -s || echo "")" in
+OS="$(uname -s || echo "")"
16
+case "$OS" in
17
Darwin*) PLATFORM="darwin" ;;
18
Linux*) PLATFORM="linux" ;;
- *)
19
+ CYGWIN*|MINGW*|MSYS*)
20
if command -v winget >/dev/null 2>&1; then
21
echo "Windows detected. Installing via winget..."
22
winget install GitHub.Copilot
@@ -25,6 +26,7 @@ case "$(uname -s || echo "")" in
25
26
exit 1
27
fi
28
;;
29
+ *) echo "Error: Unsupported operating system $OS" >&2 ; exit 1 ;;
30
esac
31
32
# Detect architecture
0 commit comments