diff --git a/script.sh b/script.sh index 9833c9285..0e6b3a63e 100644 --- a/script.sh +++ b/script.sh @@ -1,9 +1,9 @@ #!/bin/bash -wget http://192.168.0.18:8081/artifactory/libs-snapshot-local/org/springframework/samples/spring-petclinic/maven-metadata.xml +wget http://192.168.1.19:8081/artifactory/libs-snapshot-local/org/springframework/samples/spring-petclinic/maven-metadata.xml VERSION=$(cat maven-metadata.xml | grep -m 1 -oP '(?<=).*(?=)') rm -f maven-metadata.xml -wget http://192.168.0.18:8081/artifactory/libs-snapshot-local/org/springframework/samples/spring-petclinic/$VERSION/maven-metadata.xml +wget http://192.168.1.19:8081/artifactory/libs-snapshot-local/org/springframework/samples/spring-petclinic/$VERSION/maven-metadata.xml AID=$(cat maven-metadata.xml | grep -m 1 -oP '(?<=).*(?=)') VALUE=$(cat maven-metadata.xml | grep -m 1 -oP '(?<=).*(?=)')