change check on branch name
This commit is contained in:
parent
d045705044
commit
f42c8d58c2
@ -24,7 +24,8 @@ if [ "$#" -ne 0 ]; then
|
||||
usage
|
||||
else
|
||||
lastVersion=$(curl -s https://framagit.org/api/v4/projects/$FRAMAGIT_PROJECT_ID/releases | jshon -a -e name|cut -d '"' -f2|grep -v '[\^\(alpha\)]'|head -n 1)
|
||||
currentVersion=$(cd $LOCAL_REPO && git branch | grep '*'|cut -c 3-100 )
|
||||
currentVersion=$(cd $LOCAL_REPO && git branch | grep '*'|cut -c 19-100 )
|
||||
# la branche se nomme ainsi "chapril-working-1.0.2" donc pour comparer uniquement les numéros de version on enlève le début du nom
|
||||
|
||||
#echo "current version: $currentVersion"
|
||||
#echo "last version: $lastVersion"
|
||||
|
Loading…
Reference in New Issue
Block a user