Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ elif [ "${VERSION}" = "prerelease" ]; then
echo "Error: git is required to install prerelease versions" >&2
exit 1
fi
VERSION="$(git ls-remote --tags https://github.com/github/copilot-cli | tail -1 | awk -F/ '{print $NF}')"
VERSION="$(git ls-remote --tags https://github.com/github/copilot-cli | grep -E '\-.*refs/tags/' | tail -1 | awk -F/ '{print $NF}')"
if [ -z "$VERSION" ]; then
echo "Error: Could not determine prerelease version" >&2
exit 1
Expand Down Expand Up @@ -149,7 +149,7 @@ if ! command -v copilot >/dev/null 2>&1; then
esac

# Prompt user to add to shell rc file (only if interactive)
if [ -t 0 ] || [ -e /dev/tty ]; then
if [ -t 0 ]; then
echo ""
printf "Would you like to add it to %s? [y/N] " "$RC_FILE"
if read -r REPLY </dev/tty 2>/dev/null; then
Expand Down