From 5bec9bf7bc0881b3b18bfdb3ee3404d5af72c485 Mon Sep 17 00:00:00 2001 From: Mateus Gabi Date: Fri, 20 Apr 2018 14:56:45 +0000 Subject: [PATCH] corrigido parcialmente #12 --- src/semver.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/semver.sh b/src/semver.sh index c8ddb3c..f262c3c 100644 --- a/src/semver.sh +++ b/src/semver.sh @@ -91,14 +91,17 @@ else tag=${GIT_TAG//v} print "STAG $tag" i=1 - for x in $tag + for x in $(echo $tag | tr "." "\n") do if [[ "$i" = 1 ]]; then export LATEST_MAJOR_VERSION=$x + print "LATEST_MAJOR_VERSION: $x" elif [[ "$i" = 2 ]]; then export LATEST_MINOR_VERSION=$x + print "LATEST_MINOR_VERSION: $x" elif [[ "$i" = 3 ]]; then export LATEST_PATCH_VERSION=$x + print "LATEST_PATCH_VERSION: $x" fi i=$(($i + 1)) done