parse gitea tags without jq

This commit is contained in:
2026-08-22 06:24:26 +02:00
parent 9722741bfd
commit 49d2e35106
+1 -1
View File
@@ -26,7 +26,7 @@ function download_files() {
done done
} }
GIT_TAG=$(curl -fsSL "$API_ENDPOINT/tags" | jq -r '.[] | .name' | sort --version-sort | tail -n 1) GIT_TAG=$(curl -fsSL "$API_ENDPOINT/tags" | grep -o '{"name":"[^"]*"' | sed 's/^{"name":"//;s/"$//' | sort --version-sort | tail -n 1)
if [ -n "$GIT_TAG" ]; then if [ -n "$GIT_TAG" ]; then
echo "Info: installing pbc version $GIT_TAG" echo "Info: installing pbc version $GIT_TAG"
else else