From 3a1163be209c6236d604fc069ef61089b50431dc Mon Sep 17 00:00:00 2001 From: John Freeman Date: Sat, 16 Nov 2024 17:32:09 +0000 Subject: [PATCH] Fix tokei install (#45) Alpha versions not maked as prerelease. --- devcontainer-base/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devcontainer-base/Dockerfile b/devcontainer-base/Dockerfile index 72dddeb..c908045 100644 --- a/devcontainer-base/Dockerfile +++ b/devcontainer-base/Dockerfile @@ -201,7 +201,7 @@ RUN VERSION="`curl -fsSL -H 'Accept: application/vnd.github.v3+json' https://api # Install tokei RUN VERSION="`curl -fsSL -H 'Accept: application/vnd.github.v3+json' https://api.github.com/repos/XAMPPRocky/tokei/releases \ - | jq --raw-output '[.[] | select(.prerelease == false)] | .[0].tag_name'`" \ + | jq --raw-output '[.[] | select(.prerelease == false) | select(.tag_name | index("alpha") | not)] | .[0].tag_name'`" \ && URL="https://raw.githubusercontent.com/XAMPPRocky/tokei/${VERSION}/LICENCE-MIT" \ && mkdir -p /usr/local/share/tokei \ && curl -fsSL --output /usr/local/share/tokei/LICENSE "${URL}" \