From 9fc167717daba1656ecd93f08c1bd478e6264fcb Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Wed, 31 Dec 2025 11:57:11 -0500 Subject: [PATCH] fix var check --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 48e26c5..714965d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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//_/ }" && \