Skip to content

Commit 2fe60be

Browse files
authored
Merge pull request #161 from codacy/remove-jq
feature: Remove jq dependency
2 parents 6be8c77 + 2415776 commit 2fe60be

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export CODACY_USERNAME=%Username%
4343

4444
Additional requirements:
4545

46-
- jq
4746
- curl
4847

4948
```bash

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)