Skip to content

Commit 94d60ba

Browse files
committed
fixed version checking in release script
1 parent ed4999d commit 94d60ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

RELEASE.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
#!/usr/bin/sh
21

32
#
43
# Acceptable version identifier is x.y.z, e.g. 1.0.4
54
# the version number is then prepended with 'v' for
65
# the tags annotation in git.
76
#
87
VERSION=$1
9-
if [[ "$1" != *"."*"."* ]]; then
8+
if [[ "$VERSION" != *"."*"."* ]]; then
109
echo "Invalid version number"
1110
exit 1
1211
fi
@@ -15,7 +14,6 @@ if git tag -l | grep -w v$VERSION; then
1514
exit 1
1615
fi
1716

18-
1917
#
2018
# Clean up any previously attempted archives
2119
#

0 commit comments

Comments
 (0)