Skip to content

Commit 752496d

Browse files
devm33Copilot
andcommitted
install: cache detected operating system
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3453901 commit 752496d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ 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" ;;
1819
CYGWIN*|MINGW*|MSYS*)
@@ -25,7 +26,7 @@ case "$(uname -s || echo "")" in
2526
exit 1
2627
fi
2728
;;
28-
*) echo "Error: Unsupported operating system $(uname -s)" >&2 ; exit 1 ;;
29+
*) echo "Error: Unsupported operating system $OS" >&2 ; exit 1 ;;
2930
esac
3031

3132
# Detect architecture

0 commit comments

Comments
 (0)