Switch gitea download check to jq query from grep
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
|
||||
. "${BASE_FOLDER}init.sh";
|
||||
|
||||
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 |\
|
||||
grep "${arch}$");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user