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 \