We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c068e98 commit fe9686aCopy full SHA for fe9686a
install.sh
@@ -12,10 +12,19 @@ set -e
12
echo "Installing GitHub Copilot CLI..."
13
14
# Detect platform
15
-case "$(uname -s)" in
+case "$(uname -s || echo "")" in
16
Darwin*) PLATFORM="darwin" ;;
17
Linux*) PLATFORM="linux" ;;
18
- *) echo "Error: Unsupported platform $(uname -s). For Windows, we recommend using: winget install GitHub.Copilot" >&2 ; exit 1 ;;
+ *)
19
+ if command -v winget >/dev/null 2>&1; then
20
+ echo "Windows detected. Installing via winget..."
21
+ winget install GitHub.Copilot
22
+ exit $?
23
+ else
24
+ echo "Error: Windows detected but winget not found. Please see https://gh.io/install-copilot-readme" >&2
25
+ exit 1
26
+ fi
27
+ ;;
28
esac
29
30
# Detect architecture
0 commit comments