Fix method to retreive current stable version

This commit is contained in:
Benjamin Renard 2016-04-23 11:12:05 +02:00 committed by root
parent 6717c5416b
commit 3a186dfbc6

View file

@ -118,7 +118,7 @@ for i in `seq 1 $MAX_CHECK`
do
tmpfile=`mktemp`
wget $WGET_SSL_OPT -q $CHECK_URL -O $tmpfile
newest=`cat $tmpfile|grep 'downloads.sourceforge.net'|grep 'complete.tar.gz'|head -n 1|sed 's|^.*downloads.sourceforge.net/project/roundcubemail/roundcubemail/\([^/]*\)/roundcubemail-.*$|\1|'`
newest=`cat $tmpfile|grep 'github.com'|grep 'complete.tar.gz'|head -n 1|sed 's|^.*github.com/roundcube/roundcubemail/releases/download/\([^/]*\)/roundcubemail-.*$|\1|'`
if [ -n "$newest" ]
then
[ $DEBUG -eq 1 ] && echo "Newest : $newest"