Fix check upgrade when two stable releases are available
Benjamin Renard

Benjamin Renard commited on 2012-08-08 07:51:57
Showing 1 changed files, with 1 additions and 1 deletions.

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