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 && \