Skip to content

Commit

Permalink
corrigido parcialmente #12
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusGabi committed Apr 20, 2018
1 parent 2f71a20 commit 5bec9bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/semver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bec9bf

Please sign in to comment.