Fix method to retreive current stable version
This commit is contained in:
parent
6717c5416b
commit
3a186dfbc6
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue