From ec53f2470cf4f1f064f5776da56ef59dc885c4c5 Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 15 Aug 2026 10:18:46 -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 39dda05..f738772 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ RUN \ mkdir -p /tmp/d2 /output /work && \ if [ -z ${D2_VERSION+x} ]; then \ D2_VERSION=$(curl -s https://api.github.com/repos/d2lang/d2/releases/latest \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -o \ /tmp/d2.tar.gz -L \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 00b5323..eb8f1a9 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -21,7 +21,7 @@ RUN \ mkdir -p /tmp/d2 /output /work && \ if [ -z ${D2_VERSION+x} ]; then \ D2_VERSION=$(curl -s https://api.github.com/repos/d2lang/d2/releases/latest \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -o \ /tmp/d2.tar.gz -L \