Skip to content

Commit 9f8a4bf

Browse files
committed
Windows version update
1 parent d62262d commit 9f8a4bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/msi/msversion.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# Get the last tag
4-
TAG=$(git describe --abbrev=0 --tags --match="[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" 2>/dev/null)
4+
TAG=$(git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" 2>/dev/null)
55

66
# Did getting the tag succeed?
77
if [ $? != 0 ] || [ -z "$TAG" ]; then
@@ -17,6 +17,6 @@ if [ $? != 0 ] || [ -z "$BRANCH" ]; then
1717
BRANCH="master"
1818
fi
1919

20-
STAG=$(echo $TAG | sed 's/[^0123456789.].//')
20+
STAG=$(echo $TAG | sed 's/^v//' | sed 's/[^0123456789.].//')
2121

2222
printf '%s' "$STAG"

0 commit comments

Comments
 (0)