Skip to content

Commit

Permalink
fix line ending
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Jan 12, 2024
1 parent 705ffda commit 53a2a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/scripts/get-version-from-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# ./get-version-from-branch.sh || echo "exit with error"
# Not on a release branch.
# exit with error
#

# Get the current branch name.
current_branch=$(git rev-parse --abbrev-ref HEAD)
Expand All @@ -49,9 +50,8 @@ if [[ $current_branch =~ ^release-([0-9]+)\.([0-9]+)$ ]]; then
# Return the new version.
new_version="${x}.${y}.${next_z}"
echo "${new_version}"
export NEW_VERSION=$new_version
exit 0
else
echo "Not on a release branch."
exit 1
fi6
fi

0 comments on commit 53a2a52

Please sign in to comment.