Skip to content

Commit 008ff14

Browse files
committed
Allow pinning a specific version
1 parent d3d4738 commit 008ff14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/copilot-cli/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ install_using_github() {
6666
prerelease_version="$(git ls-remote --tags https://github.com/github/copilot-cli | tail -1 | awk -F/ '{print $NF}')"
6767
download_from_github "https://github.com/github/copilot-cli/releases/download/${prerelease_version}/${cli_filename}"
6868
else
69-
echo "Unsupported version value: ${CLI_VERSION}, falling back to latest" >&2
70-
download_from_github "https://github.com/github/copilot-cli/releases/latest/download/${cli_filename}"
69+
# Install specific version
70+
download_from_github "https://github.com/github/copilot-cli/releases/download/${CLI_VERSION}/${cli_filename}"
7171
fi
7272
}
7373

0 commit comments

Comments
 (0)