Skip to content

Commit

Permalink
Merge pull request #1 from OWASP-Benchmark/master
Browse files Browse the repository at this point in the history
Sync
  • Loading branch information
nbuckwalt authored Nov 21, 2023
2 parents f6f96b2 + 8cd8108 commit 3fa3d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/Contrast/runBenchmark_wContrast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if $(find contrast.jar -mmin +1440); then
echo "Using Contrast agent downloaded in past day"
else
echo "Fetching the latest Contrast agent"
curl -o contrast.jar -L "https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.contrastsecurity&a=contrast-agent&v=LATEST"
export VERSION=$(echo "$(curl --fail --silent "https://search.maven.org/solrsearch/select?q=g:"com.contrastsecurity"&a:"contrast-agent"&rows=20&wt=json" | jq -r '.response.docs[0].latestVersion')") && Curl --silent https://repo1.maven.org/maven2/com/contrastsecurity/contrast-agent/${VERSION}/contrast-agent-${VERSION}.jar -o contrast.jar
fi

if [ -d ./working ]; then
Expand Down

0 comments on commit 3fa3d33

Please sign in to comment.