Skip to content
Permalink
Newer
Older
100755 25 lines (24 sloc) 626 Bytes
3
DIR=`dirname "$0"`
4
source $DIR/common.bash
5
if [[ -n "$1" ]]; then
6
MP_VERSION=$1
7
else
8
if [[ $tag == "latest" ]]; then
9
MP_VERSION=3.9-SNAPSHOT
10
else
11
MP_VERSION=$tag
12
fi
13
fi
14
echo "Downloading midPoint $MP_VERSION"
15
echo "-----------------------------------------"
16
curl --output $DIR/midpoint-dist.tar.gz "https://evolveum.com/downloads/midpoint-tier/midpoint-$MP_VERSION-dist.tar.gz"
17
echo "-----------------------------------------"
18
echo "Checking the download..."
19
if tar -tf $DIR/midpoint-dist.tar.gz >/dev/null; then
21
exit 0
22
else
23
echo "The file was not downloaded correctly"
24
exit 1
You can’t perform that action at this time.