Commit 8fc14dfa authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix issue with retrieving version

parent 69c2c90e
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ fi
if [ ${CLEAN_WEB_PAGES} == "false" ]; then
    echo "------ Generating site --------"
    echo "Generating docs version ${TAG_NAME}..."
    majorVersion=$(echo ${TAG_NAME} | grep -o v[0-9]*\. | grep -o [0-9]*)
    majorVersion=$(echo ${TAG_NAME} | grep -oE v[0-9]+\. | grep -oE [0-9]+)
    interVersion=$(echo ${TAG_NAME} | cut -d. -f2)
    minorVersion=$(echo ${TAG_NAME} | cut -d. -f3)
    echo "Major version is ${majorVersion}"
@@ -220,7 +220,7 @@ if [ ${CLEAN_WEB_PAGES} == "false" ]; then
    fi
else
    echo "------ Removing docs version  }..."
    majorVersion=$(echo ${CLEAN_WEB_PAGES} | grep -o v[0-9]*\. | grep -o [0-9]*)
    majorVersion=$(echo ${CLEAN_WEB_PAGES} | grep -oE v[0-9]+\. | grep -oE [0-9]+)
    if [ -n "${majorVersion}" ]; then
        previousVersion=$(mike list --deploy-prefix public -r $HTTPS_REMOTE -b $PAGES_BRANCH | grep v${majorVersion} | grep -A1 ${CLEAN_WEB_PAGES} | grep -v ${CLEAN_WEB_PAGES})
        releaseVersion="latestR${majorVersion}"