wok diff get-skype/stuff/get-skype @ rev 3893

get-*: do not create empty packages
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 14 10:01:38 2009 +0200 (2009-08-14)
parents 79b993d2d81e
children 2da8547f534b
line diff
     1.1 --- a/get-skype/stuff/get-skype	Fri May 01 12:13:47 2009 +0000
     1.2 +++ b/get-skype/stuff/get-skype	Fri Aug 14 10:01:38 2009 +0200
     1.3 @@ -17,10 +17,15 @@
     1.4  
     1.5  # Download tarball
     1.6  WEB_SITE="http://www.skype.com/"
     1.7 -wget ${WEB_SITE}go/getskype-linux-static
     1.8 +TARBALL="getskype-linux-static"
     1.9 +wget ${WEB_SITE}go/$TARBALL
    1.10 +if [ ! -f $TARBALL ]; then
    1.11 +	echo "Could not download $TARBALL. Exiting."
    1.12 +	exit 1
    1.13 +fi
    1.14  
    1.15  # Extract
    1.16 -TARBALL=$(ls getskype-linux-static skype*.tar.bz2 2> /dev/null || true)
    1.17 +TARBALL=$(ls $TARBALL skype*.tar.bz2 2> /dev/null || true)
    1.18  tar xjf $TARBALL
    1.19  VERSION=$(ls -d skype_static-*/)
    1.20  VERSION=${VERSION%/}