mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-17 11:19:15 +00:00
the refreshInstance.sh script's "install-release" option now defaults to the newest build-* release
This commit is contained in:
@@ -2,11 +2,7 @@
|
||||
release=$1
|
||||
if [ "$release" = "" ]; then
|
||||
SET_LATEST=1
|
||||
INDEX=`mktemp index_XXXX.html`
|
||||
echo Tempfile for index.html is $INDEX
|
||||
wget -O $INDEX http://releases.sapsailing.com/
|
||||
release=$(cat $INDEX | grep build- | tail -1 | sed -e 's/^.*\(build-[0-9]*\).*$/\1/')
|
||||
rm $INDEX
|
||||
release=$(wget -O - http://releases.sapsailing.com/ 2>/dev/null | grep build- | tail -1 | sed -e 's/^.*\(build-[0-9]*\).*$/\1/')
|
||||
echo Latest release is $release
|
||||
fi
|
||||
GITROOT="`dirname $0`/.."
|
||||
|
||||
@@ -288,8 +288,8 @@ if [[ $OPERATION == "auto-install" ]]; then
|
||||
elif [[ $OPERATION == "install-release" ]]; then
|
||||
INSTALL_FROM_RELEASE=$PARAM
|
||||
if [[ $INSTALL_FROM_RELEASE == "" ]]; then
|
||||
echo "You need to provide the name of a release from http://releases.sapsailing.com/"
|
||||
exit 1
|
||||
INSTALL_FROM_RELEASE=$(wget -O - http://releases.sapsailing.com/ 2>/dev/null | grep build- | tail -1 | sed -e 's/^.*\(build-[0-9]*\).*$/\1/')
|
||||
echo "You didn't provide a release. Picking latest master build from http://releases.sapsailing.com/$INSTALL_FROM_RELEASE"
|
||||
fi
|
||||
|
||||
# Honor the no-overrite setting if there is one
|
||||
|
||||
Reference in New Issue
Block a user