diff --git a/monitoring/check_datechaprilorg_update b/monitoring/check_datechaprilorg_update index ce280b8..c4a2da9 100755 --- a/monitoring/check_datechaprilorg_update +++ b/monitoring/check_datechaprilorg_update @@ -17,7 +17,7 @@ function usage() { if [ "$#" -ne 0 ]; then usage 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 ) #echo $currentVersion