+

Fix method to retreive current stable version

Benjamin Renard [2016-04-23 09:12:05]
Fix method to retreive current stable version
Filename
check_rc_upgrade.sh
diff --git a/check_rc_upgrade.sh b/check_rc_upgrade.sh
index 4c9ce4b..abe5c98 100755
--- a/check_rc_upgrade.sh
+++ b/check_rc_upgrade.sh
@@ -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"
ViewGit