Skip to content

Commit

Permalink
Merge pull request #32 from nextstrain/download-latest-main
Browse files Browse the repository at this point in the history
Download latest main
  • Loading branch information
joverlee521 authored May 23, 2023
2 parents a2da0f5 + 804a435 commit 5655133
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions devel/download-latest
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ CONDA_SUBDIR="${CONDA_SUBDIR:-$("$repo"/devel/conda-subdir)}"
export CONDA_SUBDIR

wget "$(
curl -fsSL https://api.anaconda.org/release/nextstrain/nextstrain-base/latest | jq -r '
.distributions
curl -fsSL https://api.anaconda.org/package/nextstrain/nextstrain-base/files | jq -r '
map(select(.labels|index("main")))
| map(select(.attrs.subdir == env.CONDA_SUBDIR))
| .[0].download_url
| max_by([.version, .attrs.build_number])
| .download_url
| if startswith("//") then "https:\(.)" else . end
'
)"

0 comments on commit 5655133

Please sign in to comment.