Skip to content

Commit 7a4dbb7

Browse files
committed
release.sh: fix version matching
A commit_hash component was added to the version string: "loop version 0.31.2-beta commit=v0.31.2-beta-dirty commit_hash=xxx". As .* is greedy, it captured "0.31.2-beta commit=v0.31.2-beta-dirty" instead of just "0.31.2-beta". This commit fixes this.
1 parent e575170 commit 7a4dbb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ else
3737
LOOP_VERSION_OUTPUT=`./loopd-debug --version`
3838

3939
# Use a regex to isolate the version string.
40-
LOOP_VERSION_REGEX="version (.+) "
40+
LOOP_VERSION_REGEX="version ([^ ]+) "
4141
if [[ $LOOP_VERSION_OUTPUT =~ $LOOP_VERSION_REGEX ]]; then
4242
# Prepend 'v' to match git tag naming scheme.
4343
LOOP_VERSION="v${BASH_REMATCH[1]}"

0 commit comments

Comments
 (0)