Skip to content

Commit 3fa3d33

Browse files
authored
Merge pull request #1 from OWASP-Benchmark/master
Sync
2 parents f6f96b2 + 8cd8108 commit 3fa3d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/Contrast/runBenchmark_wContrast.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if $(find contrast.jar -mmin +1440); then
1616
echo "Using Contrast agent downloaded in past day"
1717
else
1818
echo "Fetching the latest Contrast agent"
19-
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"
19+
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
2020
fi
2121

2222
if [ -d ./working ]; then

0 commit comments

Comments
 (0)