wok rev 4403
get-opera: download stable version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 19 18:56:55 2009 +0200 (2009-10-19) |
parents | d1241b1278bb |
children | fc5959c746cb |
files | get-opera/stuff/get-opera |
line diff
1.1 --- a/get-opera/stuff/get-opera Sun Oct 18 12:32:13 2009 +0000 1.2 +++ b/get-opera/stuff/get-opera Mon Oct 19 18:56:55 2009 +0200 1.3 @@ -20,7 +20,7 @@ 1.4 mkdir -p $TMP_DIR && cd $TMP_DIR 1.5 1.6 # Download rpm 1.7 -set -- $(wget -O - $URL 2>/dev/null | grep href= | tail -2 | sed 's|.*href="\(.*\)/".*|\1|') 1.8 +set -- $(wget -O - $URL 2>/dev/null | grep -E 'href="[0-9]*/"' | tail -1 | 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