From 777dbd8f4cc0fef1a9c5b8ddee97815019a6380a Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 15 Aug 2026 10:47:44 -0400 Subject: [PATCH] update github api parsing to use jq --- Dockerfile | 2 +- Dockerfile.aarch64 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ac9687..3114d27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,7 +62,7 @@ RUN \ mkdir -p /app/www && \ if [ -z ${MANYFOLD_VERSION+x} ]; then \ MANYFOLD_VERSION=$(curl -sX GET "https://api.github.com/repos/manyfold3d/manyfold/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -sX GET "https://api.github.com/repos/manyfold3d/manyfold/git/matching-refs/tags/${MANYFOLD_VERSION}" \ | jq -r '.[].object.sha' > /app/www/GIT_SHA && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 87ab7a8..6ff2de9 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -62,7 +62,7 @@ RUN \ mkdir -p /app/www && \ if [ -z ${MANYFOLD_VERSION+x} ]; then \ MANYFOLD_VERSION=$(curl -sX GET "https://api.github.com/repos/manyfold3d/manyfold/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -sX GET "https://api.github.com/repos/manyfold3d/manyfold/git/matching-refs/tags/${MANYFOLD_VERSION}" \ | jq -r '.[].object.sha' > /app/www/GIT_SHA && \