Skip to content
Snippets Groups Projects
Unverified Commit 59c3d841 authored by Stefan Prodan's avatar Stefan Prodan Committed by GitHub
Browse files

Merge pull request #1847 from OakNorthAI/let-user-set-version-to-install

feature: let user specify what version of flux-cli they want to install
parents 08512e5c 641d5378
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,13 @@ setup_tmp() { ...@@ -87,7 +87,13 @@ setup_tmp() {
# Find version from Github metadata # Find version from Github metadata
get_release_version() { get_release_version() {
METADATA_URL="https://api.github.com/repos/${GITHUB_REPO}/releases/latest" if [[ -n "${FLUX_VERSION}" ]]; then
SUFFIX_URL="tags/v${FLUX_VERSION}"
else
SUFFIX_URL="latest"
fi
METADATA_URL="https://api.github.com/repos/${GITHUB_REPO}/releases/${SUFFIX_URL}"
info "Downloading metadata ${METADATA_URL}" info "Downloading metadata ${METADATA_URL}"
download "${TMP_METADATA}" "${METADATA_URL}" download "${TMP_METADATA}" "${METADATA_URL}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment