Skip to content

Commit

Permalink
Fixed update script
Browse files Browse the repository at this point in the history
  • Loading branch information
totto committed Jan 12, 2015
1 parent 79d1866 commit 2ec7252
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions update-service.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#!/bin/sh
#!/bin/bash

A=UserAdminWebApp
V=SNAPSHOT


if [[ $V == *SNAPSHOT* ]]; then
echo Note: If the artifact version contains "SNAPSHOT" - the artifact latest greates snapshot is downloaded, Irrelevent of version number!!!
path="http://mvnrepo.cantara.no/content/repositories/snapshots/net/whydah/token/$A"
path="http://mvnrepo.cantara.no/content/repositories/snapshots/net/whydah/identity/$A"
version=`curl -s "$path/maven-metadata.xml" | grep "<version>" | sed "s/.*<version>\([^<]*\)<\/version>.*/\1/" | tail -n 1`
echo "Version $version"
build=`curl -s "$path/$version/maven-metadata.xml" | grep '<value>' | head -1 | sed "s/.*<value>\([^<]*\)<\/value>.*/\1/"`
JARFILE="$A-$build.jar"
url="$path/$version/$JARFILE"
else #A specific Release version
path="http://mvnrepo.cantara.no/content/repositories/releases/net/whydah/token/$A"
path="http://mvnrepo.cantara.no/content/repositories/releases/net/whydah/identity/$A"
url=$path/$V/$A-$V.jar
JARFILE=$A-$V.jar
fi
Expand Down

0 comments on commit 2ec7252

Please sign in to comment.