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