Skip to content

Commit

Permalink
Fix get_release_version
Browse files Browse the repository at this point in the history
Need to explicitly search for <version> tag.
  • Loading branch information
rhaschke committed Mar 21, 2024
1 parent 09e95d5 commit d18e952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function get_release_version {

if git rev-parse --is-inside-work-tree &> /dev/null; then
# commit offset from latest version update in package.xml
offset="$(git rev-list --count "$(git log -n 1 --pretty=format:'%H' -Gversion package.xml)..HEAD")"
offset="$(git rev-list --count "$(git log -n 1 --pretty=format:'%H' -G"<version>" package.xml)..HEAD")"
fi

echo "$version-$offset$DEB_DISTRO"
Expand Down

0 comments on commit d18e952

Please sign in to comment.