1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-31 22:45:39 -05:00

auto detect pre release

This commit is contained in:
Darien Raymond
2017-04-24 21:12:31 +02:00
parent d615874aa9
commit a4212e7b48

View File

@@ -1,11 +1,13 @@
#!/bin/bash
VER=$1
PRE=$2
PROJECT=$3
PROJECT=$2
if [ -z "$PRE" ]; then
DOTCNT=$(echo $VER | grep -o "\." | wc -l)
if [ "$DOTCNT" -gt 1 ]; then
PRE="true"
else
PRE="false"
fi
if [ -z "$PROJECT" ]; then
@@ -13,7 +15,7 @@ if [ -z "$PROJECT" ]; then
exit 0
fi
echo Creating a new release: $VER: $MSG
echo Creating a new release: $VER
IFS="." read -a PARTS <<< "$VER"
MAJOR=${PARTS[0]}