Skip to content

Commit

Permalink
Merge pull request #150 from codacy/add-version
Browse files Browse the repository at this point in the history
feature: Add version to log
  • Loading branch information
Daniel Reigada authored Jan 10, 2020
2 parents 83e9966 + 838a92e commit ceb9289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ codacy_reporter="$codacy_temp_folder/codacy-coverage-reporter-assembly.jar"

if [ ! -f "$codacy_reporter" ]
then
log "$i" "Download the codacy reporter..."
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')"
else
log "$i" "Using codacy reporter from cache"
Expand All @@ -88,4 +88,4 @@ then
java -jar "$codacy_reporter" $@
else
java -jar "$codacy_reporter" report
fi
fi

0 comments on commit ceb9289

Please sign in to comment.