diff --git a/download.sh b/download.sh index 5d8d9b7..c6f107e 100755 --- a/download.sh +++ b/download.sh @@ -1,3 +1,5 @@ +#!/bin/bash + if ! . ./CONFIG ; then echo "Error sourcing configuration file CONFIG" >&2 exit 1 @@ -8,6 +10,7 @@ if [ -n "$1" ] ; then version="$1" fi + echo "Using selenium version $version (override via file CONFIG)" if [ -n "$version" ] ; then @@ -27,8 +30,11 @@ if [ -r "$jar" ] ; then exit 0 fi +# release 2.40.0 is available in directory 2.40 +minor_version=${version%.[0-9]} + echo "Downloading $jar (might take a while...)" -if wget --no-verbose -O "$jar" "http://selenium.googlecode.com/files/${jar}" ; then +if wget --no-verbose -O "$jar" "http://selenium-release.storage.googleapis.com/${minor_version}/${jar}" ; then echo OK else echo "ERROR" >&2