Skip to content

Commit a6ae2bb

Browse files
committed
Add leading v for pinned versions
1 parent 008ff14 commit a6ae2bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/copilot-cli/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ install_using_github() {
6767
download_from_github "https://github.com/github/copilot-cli/releases/download/${prerelease_version}/${cli_filename}"
6868
else
6969
# 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
7074
download_from_github "https://github.com/github/copilot-cli/releases/download/${CLI_VERSION}/${cli_filename}"
7175
fi
7276
}

0 commit comments

Comments
 (0)