wok-6.x rev 3397

get-opera: increase lifetime a bit
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 12 09:34:17 2009 +0200 (2009-06-12)
parents 5f1aeeb805d8
children a5a4c7419752
files get-opera/stuff/get-opera
line diff
     1.1 --- a/get-opera/stuff/get-opera	Fri Jun 12 00:22:04 2009 +0000
     1.2 +++ b/get-opera/stuff/get-opera	Fri Jun 12 09:34:17 2009 +0200
     1.3 @@ -2,8 +2,6 @@
     1.4  
     1.5  URL=http://mirrors.dedipower.com/opera/linux/
     1.6  ROOT="$1"
     1.7 -#RELEASE="final"
     1.8 -RELEASE="beta1"
     1.9  
    1.10  if test $(id -u) != 0 ; then
    1.11          echo -e "\nYou must be root to run `basename $0`."
    1.12 @@ -23,6 +21,9 @@
    1.13  
    1.14  # Download rpm
    1.15  N=$(wget -O - $URL 2>/dev/null | grep href= | tail -1 | sed 's|.*href="\(.*\)/".*|\1|')
    1.16 +for RELEASE in final beta4 beta3 beta2 beta1 ; do
    1.17 +  wget -s $URL$N/$RELEASE/en/i386/ 2> /dev/null && break 
    1.18 +done
    1.19  URL=$URL$N/$RELEASE/en/i386/
    1.20  FILE=$(wget -O - $URL 2> /dev/null | grep rpm | sed 's|.*href="\(.*\)".*|\1|')
    1.21  URL=$URL$FILE