Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Nov 26, 2020
1 parent 4297be6 commit ba843f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ current_version() {
}

current_release_branch() {
v="$(current_version)"
echo "release-${v%.*-"$PRERELEASE_SUFFIX".*}"
v="$(current_version)" # 3.3.0-rc.0
vf="${v%-"$PRERELEASE_SUFFIX".*}" # 3.3.0
r="${vf%.*}" # 3.3
echo "release-$r"
}

assert_current_branch() {
Expand Down

0 comments on commit ba843f0

Please sign in to comment.