# HG changeset patch # User Pascal Bellard # Date 1255971415 -7200 # Node ID ab1b5d3723741351d9932b9ad3614c8e47f75bfd # Parent d1241b1278bb94e497f9c346a08492eeefa155f5 get-opera: download stable version diff -r d1241b1278bb -r ab1b5d372374 get-opera/stuff/get-opera --- a/get-opera/stuff/get-opera Sun Oct 18 12:32:13 2009 +0000 +++ b/get-opera/stuff/get-opera Mon Oct 19 18:56:55 2009 +0200 @@ -20,7 +20,7 @@ mkdir -p $TMP_DIR && cd $TMP_DIR # Download rpm -set -- $(wget -O - $URL 2>/dev/null | grep href= | tail -2 | sed 's|.*href="\(.*\)/".*|\1|') +set -- $(wget -O - $URL 2>/dev/null | grep -E 'href="[0-9]*/"' | tail -1 | sed 's|.*href="\(.*\)/".*|\1|') for RELEASE in final beta4 beta3 beta2 beta1 ; do N=$2 wget -s $URL$N/$RELEASE/en/i386/ 2> /dev/null && break