diff --git a/elm/Dockerfile b/elm/Dockerfile index f4535a62d..74cb7ea9a 100644 --- a/elm/Dockerfile +++ b/elm/Dockerfile @@ -45,7 +45,7 @@ RUN apt-get update \ WORKDIR / COPY frontend/elm.json ./ -RUN elm_version="$(yq -r '."elm-version"' elm.json)" \ +RUN elm_version="$(yq -oy '."elm-version"' elm.json)" \ && git clone -b "${elm_version}" https://github.com/elm/compiler.git WORKDIR /compiler diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 167368498..67c8ddf7c 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -19,7 +19,7 @@ COPY frontend/elm.json ./ RUN if [ "${TARGETPLATFORM}" != "linux/arm64" ]; then \ curl -L https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -o /usr/bin/yq; \ chmod +x /usr/bin/yq; \ - elm_version="$(yq -r '."elm-version"' elm.json)"; \ + elm_version="$(yq -oy '."elm-version"' elm.json)"; \ curl -L -o elm.gz "https://github.com/elm/compiler/releases/download/${elm_version}/binary-for-linux-64-bit.gz"; \ gunzip elm.gz; \ chmod +x elm; \ diff --git a/scripts/release/build_frontend/build.sh b/scripts/release/build_frontend/build.sh index ff400a92a..cf554b0bf 100755 --- a/scripts/release/build_frontend/build.sh +++ b/scripts/release/build_frontend/build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # https://github.com/elm/compiler/blob/24d3a89469e75cf7aa579442ecaf5ddfdd192ab2/installers/linux/README.md -elm_version="$(yq -r '."elm-version"' elm.json)" +elm_version="$(yq -oy '."elm-version"' elm.json)" curl -L -o elm.gz "https://github.com/elm/compiler/releases/download/${elm_version}/binary-for-linux-64-bit.gz" gunzip elm.gz chmod +x elm