Skip to content

Commit

Permalink
corrigido bug que só gerava majors
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusGabi committed Apr 1, 2018
1 parent f50419c commit 2796340
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/semver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,10 @@ print "Latest version: $LATEST_MAJOR_VERSION.$LATEST_MINOR_VERSION.$LATEST_PATCH
# upgrade version
if [[ "$MODE" = "patch" ]]; then
export LATEST_PATCH_VERSION=$(($LATEST_PATCH_VERSION + 1))
fi
if [[ "$MODE" = "minor" ]]; then
elif [[ "$MODE" = "minor" ]]; then
export LATEST_MINOR_VERSION=$(($LATEST_MINOR_VERSION + 1))
export LATEST_PATCH_VERSION=0
fi
if [[ "$MODE" = "major" ]]; then
elif [[ "$MODE" = "major" ]]; then
export LATEST_MAJOR_VERSION=$(($LATEST_MAJOR_VERSION + 1))
export LATEST_MINOR_VERSION=0
export LATEST_PATCH_VERSION=0
Expand Down

0 comments on commit 2796340

Please sign in to comment.