get-scripts rev 73

opera: update URL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 27 14:58:46 2017 +0200 (2017-09-27)
parents af72949c6633
children 978498fdc18b
files opera
line diff
     1.1 --- a/opera	Wed Sep 27 13:40:10 2017 +0200
     1.2 +++ b/opera	Wed Sep 27 14:58:46 2017 +0200
     1.3 @@ -5,18 +5,17 @@
     1.4  
     1.5  get_releases()
     1.6  {
     1.7 -	wget -qO- "$URL?C=M;O=D" | sed 's|.*[Ff]="\([^"/]*\).*|\1|;/[^0-9b]/d'
     1.8 +	wget -qO- "$URL" | sed 's|.*[Ff]="\([^"/]*\).*|\1|;/[^0-9b]/d' | tac
     1.9  }
    1.10  
    1.11  # Download deb
    1.12 -### for RELEASE in $@ $(get_releases); do
    1.13 -	RELEASE=1216
    1.14 +for RELEASE in $@ $(get_releases); do
    1.15  	TARBALL=$(wget -O- "$URL$RELEASE/" 2>/dev/null |sed 's|.*[Ff]="\(.*\)".*|\1|;/6.d/!d;q'|sed 's/".*//')
    1.16  	[ -n "$TARBALL" ] || continue
    1.17  	WGET_URL=$URL$RELEASE/$TARBALL
    1.18  	wget $WGET_URL
    1.19 -### 	[ -s $TARBALL ] && break
    1.20 -### done
    1.21 +	[ -s $TARBALL ] && break
    1.22 +done
    1.23  
    1.24  [ -f $TARBALL ] || abort_package
    1.25