wok-6.x rev 3798
get-flash-plugin: tarball omit root dir
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 03 18:38:35 2009 +0200 (2009-08-03) |
parents | 14b75f02548a |
children | 7bde7b5b965d |
files | get-flash-plugin/stuff/get-flash-plugin |
line diff
1.1 --- a/get-flash-plugin/stuff/get-flash-plugin Mon Aug 03 11:49:03 2009 +0000 1.2 +++ b/get-flash-plugin/stuff/get-flash-plugin Mon Aug 03 18:38:35 2009 +0200 1.3 @@ -45,12 +45,14 @@ 1.4 esac 1.5 DIR=install_flash_player_${value}_linux 1.6 TARBALL=$DIR.tar.gz 1.7 -wget $URL$TARBALL 1.8 +[ -f $TARBALL ] || wget $URL$TARBALL 1.9 1.10 # Extract 1.11 -tar xzf $TARBALL 1.12 +mkdir $DIR 1.13 +cd $DIR 1.14 +tar xzf ../$TARBALL 1.15 1.16 -cd $DIR 1.17 +[ -d $DIR ] && mv $DIR/* . 1.18 VERSION="$(strings libflashplayer.so | grep ^LNX | sed -e 's/LNX //' -e 's/,/./g')" 1.19 1.20 # Install files