Skip to content

Commit

Permalink
Make version.sh work on short changelogs
Browse files Browse the repository at this point in the history
Because:
- A very short changelog entry can cause two version numbers to be
  fetched by this function.
  • Loading branch information
lunkwill42 committed Oct 23, 2020
1 parent f6a0aa1 commit e2ac5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ get_version() {
}

get_version_from_changelog() {
head CHANGES | awk '/^Version/ { print $2 }'
head -n 2 CHANGES | awk '/^Version/ { print $2 }'
}

git_tag_exists() {
Expand Down

0 comments on commit e2ac5e6

Please sign in to comment.