fixed bug in check_datechapril_update (#5090)

This commit is contained in:
Didier Clermonté 2021-01-05 18:48:57 +01:00 committed by root
parent 9b60eb5b46
commit 8cd4c5df38

View File

@ -17,7 +17,7 @@ function usage() {
if [ "$#" -ne 0 ]; then if [ "$#" -ne 0 ]; then
usage usage
else else
lastVersion=$(curl -s https://framagit.org/api/v4/projects/16/releases | jshon -a -e name|cut -d '"' -f2|grep -v '[\^\(alpha\)]'|head -n 1) lastVersion=$(curl -s https://framagit.org/api/v4/projects/16/releases | jshon -a -e name|cut -d '"' -f2|grep -v '[\^\(alpha\)]'|sort -rV|head -n 1)
currentVersion=$(cd /var/www/date.chapril.org && git branch | grep '*'|cut -c 11-100 ) currentVersion=$(cd /var/www/date.chapril.org && git branch | grep '*'|cut -c 11-100 )
#echo $currentVersion #echo $currentVersion