23
0
Fork 0

Merge branch 'master' of ssh://forge.april.org:222/Chapril/mobilizon.chapril.org-tools

This commit is contained in:
tykayn 2020-11-26 17:53:04 +01:00 committed by Baptiste Lemoine
commit b449a80dfa
2 changed files with 2 additions and 2 deletions

View File

4
monitoring/check_version.sh Normal file → Executable file
View File

@ -26,8 +26,8 @@ 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) 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 3-100 )
echo "current version: $currentVersion" #echo "current version: $currentVersion"
echo "last version: $lastVersion" #echo "last version: $lastVersion"
if [ $currentVersion = $lastVersion ]; then if [ $currentVersion = $lastVersion ]; then
echo "OK" echo "OK"
result=0 result=0