Skip to content

Commit

Permalink
Merge pull request #161 from codacy/remove-jq
Browse files Browse the repository at this point in the history
feature: Remove jq dependency
  • Loading branch information
mrfyda authored Feb 25, 2020
2 parents 6be8c77 + 2415776 commit 2fe60be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export CODACY_USERNAME=%Username%

Additional requirements:

- jq
- curl

```bash
Expand Down
2 changes: 1 addition & 1 deletion get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ codacy_reporter="$codacy_temp_folder/codacy-coverage-reporter-assembly.jar"
if [ ! -f "$codacy_reporter" ]
then
log "$i" "Download the codacy reporter... ($CODACY_REPORTER_VERSION)"
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')"
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)"
else
log "$i" "Using codacy reporter from cache"
fi
Expand Down

0 comments on commit 2fe60be

Please sign in to comment.