diff --git a/Dockerfile b/Dockerfile index b3c07eae..cdbf0cdb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,7 +39,7 @@ RUN \ echo "**** install calibre-web ****" && \ if [ -z ${CALIBREWEB_RELEASE+x} ]; then \ CALIBREWEB_RELEASE=$(curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -o \ /tmp/calibre-web.tar.gz -L \ @@ -60,7 +60,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 b33e0dd2..7de397cc 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -45,7 +45,7 @@ RUN \ echo "**** install calibre-web ****" && \ if [ -z ${CALIBREWEB_RELEASE+x} ]; then \ CALIBREWEB_RELEASE=$(curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ + | jq -r '.tag_name'); \ fi && \ curl -o \ /tmp/calibre-web.tar.gz -L \ @@ -66,7 +66,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 \