Skip to content

Commit f982463

Browse files
authored
Merge pull request #95 from linuxserver/jq-fix
replace sed awk with jq
2 parents b8a5bb0 + 01afc97 commit f982463

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN --mount=type=bind,from=cosign-bin,source=/ko-app/cosign,target=/usr/local/bi
4545
echo "**** install lychee ****" && \
4646
if [ -z "${LYCHEE_VERSION}" ]; then \
4747
LYCHEE_VERSION=$(curl -sX GET "https://api.github.com/repos/LycheeOrg/Lychee/releases/latest" \
48-
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
48+
| jq -r '.tag_name'); \
4949
fi && \
5050
curl -o \
5151
/tmp/lychee.zip -L \

‎Dockerfile.aarch64‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN --mount=type=bind,from=cosign-bin,source=/ko-app/cosign,target=/usr/local/bi
4545
echo "**** install lychee ****" && \
4646
if [ -z "${LYCHEE_VERSION}" ]; then \
4747
LYCHEE_VERSION=$(curl -sX GET "https://api.github.com/repos/LycheeOrg/Lychee/releases/latest" \
48-
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
48+
| jq -r '.tag_name'); \
4949
fi && \
5050
curl -o \
5151
/tmp/lychee.zip -L \

0 commit comments

Comments
 (0)