Switch gitea download check to jq query from grep

This commit is contained in:
Clemens Schwaighofer
2026-04-23 13:39:50 +09:00
parent 324b577134
commit 147f3e07d1
+1 -1
View File
@@ -5,7 +5,7 @@ BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
. "${BASE_FOLDER}init.sh"; . "${BASE_FOLDER}init.sh";
download_file=$(curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest |\ download_file=$(curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest |\
grep browser_download_url |\ jq ".assets[].browser_download_url" |\
cut -d '"' -f 4 |\ cut -d '"' -f 4 |\
grep "${arch}$"); grep "${arch}$");