23
0
Fork 0

change check on branch name

This commit is contained in:
Tykayn 2020-12-08 09:48:46 +01:00 committed by tykayn
parent d045705044
commit f42c8d58c2
1 changed files with 2 additions and 1 deletions

View File

@ -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"