From d6eb8685f66512c7bf40cc78c316954d3127a8e0 Mon Sep 17 00:00:00 2001 From: tierno Date: Fri, 26 May 2017 11:20:23 +0200 Subject: [PATCH] adjust installer to get latest stable tag Change-Id: Ic6e88dcba6f1c0b1138462dd101c5c5715c8b284 Signed-off-by: tierno --- scripts/install-openvim.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install-openvim.sh b/scripts/install-openvim.sh index 3907f2d..feaee4e 100755 --- a/scripts/install-openvim.sh +++ b/scripts/install-openvim.sh @@ -256,8 +256,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 -- 2.25.1