From 67d364d8749b51698233660a735f63e5ff0ccf70 Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 15 Aug 2026 10:18:34 -0400 Subject: [PATCH] update github api parsing to use jq --- Dockerfile | 4 ++-- Dockerfile.aarch64 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index dc1a1a4..5eda7ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ RUN \ echo "**** install cops ****" && \ if [ -z ${COPS_RELEASE+x} ]; then \ COPS_RELEASE=$(curl -sX GET "https://api.github.com/repos/mikespub-org/seblucas-cops/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -o \ /tmp/cops.tar.gz -L \ @@ -42,7 +42,7 @@ RUN \ echo "***install kepubify" && \ if [ -z ${KEPUBIFY_RELEASE+x} ]; then \ KEPUBIFY_RELEASE=$(curl -sX GET "https://api.github.com/repos/pgaskin/kepubify/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -o \ /usr/bin/kepubify -L \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index ae73e14..4073fe8 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -26,7 +26,7 @@ RUN \ echo "**** install cops ****" && \ if [ -z ${COPS_RELEASE+x} ]; then \ COPS_RELEASE=$(curl -sX GET "https://api.github.com/repos/mikespub-org/seblucas-cops/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -o \ /tmp/cops.tar.gz -L \ @@ -43,7 +43,7 @@ RUN \ echo "***install kepubify" && \ if [ -z ${KEPUBIFY_RELEASE+x} ]; then \ KEPUBIFY_RELEASE=$(curl -sX GET "https://api.github.com/repos/pgaskin/kepubify/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -o \ /usr/bin/kepubify -L \