From 3b8e20a030ddbb818e0de0e7cc1fb247d2032670 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 10 Jun 2025 21:20:37 +0300 Subject: [PATCH] Fix curl output --- gitea-loader.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gitea-loader.sh b/gitea-loader.sh index 8bb30b6..b99e5fb 100755 --- a/gitea-loader.sh +++ b/gitea-loader.sh @@ -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]+')"