mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
fix var check
This commit is contained in:
parent
09e367d3b3
commit
9fc167717d
@ -6,7 +6,7 @@ ARG MOD_VERSION
|
||||
|
||||
RUN \
|
||||
DOTNET_JSON=$(curl -sX GET "https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json") && \
|
||||
if [ -z ${MOD_VERSION+x} ]; then \
|
||||
if [ -z "${MOD_VERSION}" ]; then \
|
||||
MOD_VERSION=$(echo "$DOTNET_JSON" | jq -r '."releases-index"[] | select(."support-phase"=="active" or ."support-phase"=="maintenance") | ."latest-sdk"' | tr '\n' '_' | head -c -1); \
|
||||
fi && \
|
||||
DOTNET_VERSIONS="${MOD_VERSION//_/ }" && \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user