Fix check upgrade when two stable releases are available

This commit is contained in:
Benjamin Renard 2012-08-08 09:50:36 +02:00 committed by root
parent 5a56af91e8
commit 71aeb4805d

View file

@ -72,7 +72,7 @@ for i in `seq 1 $MAX_CHECK`
do
tmpfile=`mktemp`
wget -q $CHECK_URL -O $tmpfile
newest=`cat $tmpfile|grep Stable|grep dlversion|sed 's/^.*Stable.*: \(.*\)<\/td>.*$/\1/'`
newest=`cat $tmpfile|grep Stable|grep dlversion|sed 's/^.*Stable.*: \(.*\)<\/td>.*$/\1/'|head -n 1`
if [ -n "$newest" ]
then
[ $DEBUG -eq 1 ] && echo "Newest : $newest"