diff --git a/Dockerfile b/Dockerfile index 00ad89b9e..21195e6bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,7 @@ RUN \ /app/lazylibrarian && \ if [ -z ${LAZYLIBRARIAN_COMMIT+x} ]; then \ LAZYLIBRARIAN_COMMIT=$(curl -sX GET "https://gitlab.com/api/v4/projects/9317860/repository/commits/master" \ - | awk '/id/{print $4;exit}' FS='[""]'); \ + | jq -r '.id'); \ fi && \ echo "Installing from commit ${LAZYLIBRARIAN_COMMIT}" && \ echo "${LAZYLIBRARIAN_COMMIT}" > /defaults/version.txt && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 1df25b9d5..4a74a5963 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -29,7 +29,7 @@ RUN \ /app/lazylibrarian && \ if [ -z ${LAZYLIBRARIAN_COMMIT+x} ]; then \ LAZYLIBRARIAN_COMMIT=$(curl -sX GET "https://gitlab.com/api/v4/projects/9317860/repository/commits/master" \ - | awk '/id/{print $4;exit}' FS='[""]'); \ + | jq -r '.id'); \ fi && \ echo "Installing from commit ${LAZYLIBRARIAN_COMMIT}" && \ echo "${LAZYLIBRARIAN_COMMIT}" > /defaults/version.txt && \