Skip to content

Commit

Permalink
Move var declaration out of if
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jun 11, 2021
1 parent e1243d2 commit 4e5cfa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion resources/scripts/finish-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ fi

info "Finishing release for '$releaseVersion' with next version '$nextVersion'..."

# branch name
releaseBranch="v${releaseVersion}"

###################
if [ $step -eq 1 ]
then
info "(1/4) commit prepared changes"

releaseBranch="v${releaseVersion}"
git commit -a -m "Release ${releaseBranch}"

((step++))
Expand Down
4 changes: 3 additions & 1 deletion resources/scripts/prep-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@ fi

info "Preparing release for '$releaseVersion' with previous version '$prevVersion'..."

# branch name
releaseBranch="v${releaseVersion}"

###################
if [ $step -eq 1 ]
then
info "(1/4) create release branch"

git checkout develop
git pull
releaseBranch="v${releaseVersion}"
git checkout -b $releaseBranch

((step++))
Expand Down

0 comments on commit 4e5cfa3

Please sign in to comment.