update version retrieval

This commit is contained in:
aptalca
2022-03-29 21:29:03 -04:00
parent c8c2dec50d
commit 51e1ce68b1
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -7,9 +7,9 @@ RUN \
curl \
jq && \
if [ -z "${JULIA_VERSION}" ]; then \
JULIA_VERSION=$(curl -sX GET "https://api.github.com/repos/JuliaLang/julia/releases/latest" \
| jq -r '. | .tag_name' \
| sed 's|^v||'); \
JULIA_VERSION=$(curl -sL https://julialang.org/downloads/ \
| sed 's|.*Current stable release: v||' \
| sed 's| (.*||'); \
fi && \
JULIA_MIN_VERSION=$(echo "${JULIA_VERSION}" | cut -d. -f 1,2) && \
mkdir -p /root-layer/julia-bins && \