From: tierno Date: Fri, 26 May 2017 09:20:48 +0000 (+0200) Subject: adjust installer to get latest stable tag X-Git-Tag: v2.0.1~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=6e8b5a844f5f2e73d0f2079a127b4b41d52955b9;p=osm%2FRO.git adjust installer to get latest stable tag Change-Id: Iba77890bef9591c6cd638af3b833685d569c9d7a Signed-off-by: tierno --- diff --git a/scripts/install-openmano.sh b/scripts/install-openmano.sh index 0110d75d..0323cb4b 100755 --- a/scripts/install-openmano.sh +++ b/scripts/install-openmano.sh @@ -270,8 +270,9 @@ if [[ -z $NOCLONE ]]; then fi fi su $SUDO_USER -c "git clone ${GIT_URL} ${BASEFOLDER}" + LATEST_STABLE_TAG=`git -C "${BASEFOLDER}" tag -l v[0-9].* | tail -n1` + [[ -z $DEVELOP ]] && su $SUDO_USER -c "git -C ${BASEFOLDER} checkout tags/${LATEST_STABLE_TAG}" su $SUDO_USER -c "cp ${BASEFOLDER}/.gitignore-common ${BASEFOLDER}/.gitignore" - [[ -z $DEVELOP ]] && su $SUDO_USER -c "git -C ${BASEFOLDER} checkout v2.0" fi echo -e "\n"\