wok-6.x rev 13598

Up get-flash-plugin (1.4) again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 09 13:15:17 2012 +0100 (2012-11-09)
parents 4f73469d334e
children 1bf3b97cad7e
files get-flash-plugin/stuff/get-flash-plugin
line diff
     1.1 --- a/get-flash-plugin/stuff/get-flash-plugin	Fri Nov 09 13:13:08 2012 +0100
     1.2 +++ b/get-flash-plugin/stuff/get-flash-plugin	Fri Nov 09 13:15:17 2012 +0100
     1.3 @@ -25,13 +25,13 @@
     1.4  [ -n "$VERSION" ] && [ $VERSION -lt 100 ] && VERSION=${VERSION}0
     1.5  
     1.6  URL=
     1.7 -for i in $(seq 111 999); do
     1.8 +for i in ${VERSION/./} $(seq 111 999); do
     1.9  	n="$(busybox wget -O - "http://get.adobe.com/fr/flashplayer/completion/?installer=Flash_Player_${i:0:2}.${i:2:1}_for_other_Linux_(.tar.gz)_32-bit" | \
    1.10  	     sed "/gz/!d;s/.* '//;s/'.*//")"
    1.11  	[ -n "$n" ] && URL="$n" && [ "$i" != "${VERSION/./}" ] && continue
    1.12  	[ -n "$URL" ] && break
    1.13  done
    1.14 -[ -z "$URL" ] && for i in $(seq 11 99); do
    1.15 +[ -z "$URL" ] && for i in ${VERSION:0:2} $(seq 11 99); do
    1.16  	n="$(busybox wget -O - "http://get.adobe.com/fr/flashplayer/completion/?installer=Flash_Player_${i}_for_other_Linux_(.tar.gz)_32-bit" | \
    1.17  	     sed "/gz/!d;s/.* '//;s/'.*//")"
    1.18  	[ -n "$n" ] && URL="$n" && [ "$i" != "${VERSION:0:2}" ] && continue