Fix curl output

This commit is contained in:
root
2025-06-10 21:20:37 +03:00
parent 0641089447
commit 3b8e20a030

View File

@@ -83,8 +83,13 @@
curl \
-L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/go-gitea/gitea/releases?per_page=15" > "gitea-releases.json"
-L \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/go-gitea/gitea/releases?per_page=15" \
> "gitea-releases.json" 2>/dev/null || {
exit 1
}
for x in {3..15}; do
GITEAVERSION="$(cat gitea-releases.json | jq -r ".[$x].tag_name" | grep -aoE '[0-9]+\.[0-9]+\.[0-9]+')"