auto detect pre release

pull/298/merge
Darien Raymond 8 years ago
parent d615874aa9
commit a4212e7b48
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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]}

Loading…
Cancel
Save