release: fix release script
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 30 Jun 2015 14:57:18 +0000 (16:57 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 30 Jun 2015 14:57:37 +0000 (16:57 +0200)
The tag matcher was too tight. The tightness is taken care of by the
grep regular expression.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
release/release.bash

index 7cc5ad5..937e9e1 100755 (executable)
@@ -196,7 +196,7 @@ function getVersionDigitsFromReleaseTag() {
 declare prevRelTagVersion=""
 function getPrevRelTag() {
   set +e
-  prevRelTagVersion="$(git describe --abbrev=0 --match 'v[0-9].[0-9].[0-9]' | \
+  prevRelTagVersion="$(git describe --abbrev=0 --match 'v[0-9]*' | \
                        grep -E "^${versionRegexReleaseTag}$")"
   set -e
   if [[ -z "${prevRelTagVersion}" ]]; then