From 9e8c4fcd0cd4da0a9f3aeffb4cbb0c6a6b548aeb Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 15 Aug 2026 10:57:45 -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 d50593f..5eb8289 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,7 @@ RUN \ mkdir -p /app/www && \ if [ -z ${MASTODON_VERSION+x} ]; then \ MASTODON_VERSION=$(curl -sX GET "https://api.github.com/repos/mastodon/mastodon/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -s -o \ /tmp/mastodon.tar.gz -L \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 333f35d..98d63bf 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -46,7 +46,7 @@ RUN \ mkdir -p /app/www && \ if [ -z ${MASTODON_VERSION+x} ]; then \ MASTODON_VERSION=$(curl -sX GET "https://api.github.com/repos/mastodon/mastodon/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -s -o \ /tmp/mastodon.tar.gz -L \