Skip to content

Commit 1e6b7ad

Browse files
author
Emile Joubert
committed
Support 3 and 4 digit version numbers
1 parent 4920610 commit 1e6b7ad

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dist-msi.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ NAME=rabbitmq-dotnet-client
5757
NAME_VSN=$NAME-$RABBIT_VSN
5858
RELEASE_DIR=release
5959

60+
RELEASE_PATTERN=^[0-9]+\.[0-9]+\.[0-9]+$
61+
if [[ $RABBIT_VSN =~ $RELEASE_PATTERN ]] ; then
62+
RABBIT_VSN=$RABBIT_VSN.0
63+
fi
6064

6165
function main {
6266
get-sources

dist.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ else
6969
DOTNET_PROGRAM_PREPEND=
7070
fi
7171

72+
RELEASE_PATTERN=^[0-9]+\.[0-9]+\.[0-9]+$
73+
if [[ $RABBIT_VSN =~ $RELEASE_PATTERN ]] ; then
74+
RABBIT_VSN=$RABBIT_VSN.0
75+
fi
7276

7377
function main {
7478
### Remove everything in the release dir and create the dir again

0 commit comments

Comments
 (0)