Skip to content

Commit 5a65d18

Browse files
authored
feature: Avoid having jq as a dependency
1 parent 6be8c77 commit 5a65d18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

get.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ codacy_reporter="$codacy_temp_folder/codacy-coverage-reporter-assembly.jar"
7878
if [ ! -f "$codacy_reporter" ]
7979
then
8080
log "$i" "Download the codacy reporter... ($CODACY_REPORTER_VERSION)"
81-
curl -LS -o "$codacy_reporter" "$(curl -LSs https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/$CODACY_REPORTER_VERSION | jq -r '.assets | map({name, browser_download_url} | select(.name | endswith(".jar"))) | .[0].browser_download_url')"
81+
curl -LS -o "$codacy_reporter" "$(curl -LSs https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/$CODACY_REPORTER_VERSION | grep browser_download_url | grep jar | cut -d '"' -f 4)"
8282
else
8383
log "$i" "Using codacy reporter from cache"
8484
fi

0 commit comments

Comments
 (0)