File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if $(find contrast.jar -mmin +1440); then
1616 echo " Using Contrast agent downloaded in past day"
1717else
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
2020fi
2121
2222if [ -d ./working ]; then
You can’t perform that action at this time.
0 commit comments