wok-4.x rev 3560
get-opera: will prefer final version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 24 15:48:10 2009 +0200 (2009-06-24) |
parents | 0ba2f31c5d8d |
children | 1aa4817e0aff |
files | get-opera/stuff/get-opera |
line diff
1.1 --- a/get-opera/stuff/get-opera Wed Jun 24 20:27:09 2009 +0800 1.2 +++ b/get-opera/stuff/get-opera Wed Jun 24 15:48:10 2009 +0200 1.3 @@ -20,8 +20,11 @@ 1.4 mkdir -p $TMP_DIR && cd $TMP_DIR 1.5 1.6 # Download rpm 1.7 -N=$(wget -O - $URL 2>/dev/null | grep href= | tail -1 | sed 's|.*href="\(.*\)/".*|\1|') 1.8 +set -- $(wget -O - $URL 2>/dev/null | grep href= | tail -2 | sed 's|.*href="\(.*\)/".*|\1|') 1.9 for RELEASE in final beta4 beta3 beta2 beta1 ; do 1.10 + N=$2 1.11 + wget -s $URL$N/$RELEASE/en/i386/ 2> /dev/null && break 1.12 + N=$1 1.13 wget -s $URL$N/$RELEASE/en/i386/ 2> /dev/null && break 1.14 done 1.15 URL=$URL$N/$RELEASE/en/i386/