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 008ff14 commit a6ae2bbCopy full SHA for a6ae2bb
src/copilot-cli/install.sh
@@ -67,6 +67,10 @@ install_using_github() {
67
download_from_github "https://github.com/github/copilot-cli/releases/download/${prerelease_version}/${cli_filename}"
68
else
69
# Install specific version
70
+ # Add leading v to version if it doesn't start with v
71
+ if [[ ! "${CLI_VERSION}" =~ ^v[0-9] ]]; then
72
+ CLI_VERSION="v${CLI_VERSION}"
73
+ fi
74
download_from_github "https://github.com/github/copilot-cli/releases/download/${CLI_VERSION}/${cli_filename}"
75
fi
76
}
0 commit comments