From 884e684886d1d3d0b91a78ba28eb13070db22b01 Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 15 Aug 2026 11:30:53 -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 d8a401f..b13b480 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN \ echo "**** fetch source code ****" && \ if [ -z ${SYNCTHING_RELEASE+x} ]; then \ SYNCTHING_RELEASE=$(curl -sX GET "https://api.github.com/repos/syncthing/syncthing/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ mkdir -p \ /tmp/sync && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index d5cd7be..8df8b3d 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -15,7 +15,7 @@ RUN \ echo "**** fetch source code ****" && \ if [ -z ${SYNCTHING_RELEASE+x} ]; then \ SYNCTHING_RELEASE=$(curl -sX GET "https://api.github.com/repos/syncthing/syncthing/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ mkdir -p \ /tmp/sync && \