From 162c9cc827fa0eb95629fe0ac8207abe64306466 Mon Sep 17 00:00:00 2001 From: bugy Date: Tue, 26 Feb 2019 22:15:43 +0100 Subject: [PATCH] #171 fixed increasing of patch version --- tools/add_git_tag.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/add_git_tag.sh b/tools/add_git_tag.sh index 4efb2a32..47803f2a 100755 --- a/tools/add_git_tag.sh +++ b/tools/add_git_tag.sh @@ -13,8 +13,8 @@ elif [ "$TRAVIS_BRANCH" == "stable" ]; then npm_tag=`grep -Po '"version": "\d+.\d+.\d+"' web-src/package.json | grep -Po '\d+.\d+.\d+'` minor_npm_version=${npm_tag%.*} if [ ${last_tag%.*} == "$minor_npm_version" ]; then - patch_npm_version=${npm_tag##*.} - next_patch_version=$((patch_npm_version + 1)) + last_patch_version=${last_tag##*.} + next_patch_version=$((last_patch_version + 1)) export NEW_GIT_TAG="$minor_npm_version.$next_patch_version" else export NEW_GIT_TAG="$npm_tag"