wok-stable rev 12309

get-flash-plugin: be busybox/sed compatible
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 11 11:12:14 2012 +0200 (2012-07-11)
parents 22f6aa7cdb64
children aa38e192b6d7
files get-flash-plugin/stuff/get-flash-plugin
line diff
     1.1 --- a/get-flash-plugin/stuff/get-flash-plugin	Tue Jul 10 17:28:49 2012 +0000
     1.2 +++ b/get-flash-plugin/stuff/get-flash-plugin	Wed Jul 11 11:12:14 2012 +0200
     1.3 @@ -22,7 +22,13 @@
     1.4  fi
     1.5  
     1.6  URL=
     1.7 -for i in $(seq 11.2 0.1 11.9); do
     1.8 +for i in $(seq 112 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" && continue
    1.12 +	break
    1.13 +done
    1.14 +[ -z "$URL" ] && for i in $(seq 11 99); do
    1.15  	n="$(busybox wget -O - "http://get.adobe.com/fr/flashplayer/completion/?installer=Flash_Player_${i}_for_other_Linux_(.tar.gz)_32-bit" | \
    1.16  	     sed "/gz/!d;s/.* '//;s/'.*//")"
    1.17  	[ -n "$n" ] && URL="$n" && continue