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