We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d62262d commit 9f8a4bfCopy full SHA for 9f8a4bf
contrib/msi/msversion.sh
@@ -1,7 +1,7 @@
1
#!/bin/sh
2
3
# Get the last tag
4
-TAG=$(git describe --abbrev=0 --tags --match="[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" 2>/dev/null)
+TAG=$(git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" 2>/dev/null)
5
6
# Did getting the tag succeed?
7
if [ $? != 0 ] || [ -z "$TAG" ]; then
@@ -17,6 +17,6 @@ if [ $? != 0 ] || [ -z "$BRANCH" ]; then
17
BRANCH="master"
18
fi
19
20
-STAG=$(echo $TAG | sed 's/[^0123456789.].//')
+STAG=$(echo $TAG | sed 's/^v//' | sed 's/[^0123456789.].//')
21
22
printf '%s' "$STAG"
0 commit comments