Fixed bug downloading packages

This commit is contained in:
q3aql 2016-03-03 17:31:41 +01:00
parent 05370041a3
commit 3f07f73dbb

View File

@ -3,9 +3,9 @@
# Script to install Spotify on Debian/Ubuntu # Script to install Spotify on Debian/Ubuntu
# Created by q3aql (q3aql@openmailbox.org) # Created by q3aql (q3aql@openmailbox.org)
# Licensed by GPL v.2 # Licensed by GPL v.2
# Last update: 01-03-2016 # Last update: 03-03-2016
# -------------------------------------- # --------------------------------------
VERSION=0.2 VERSION=0.2.1
SPOTIFY_VERSION=`spotify --version | cut -d "," -f 1` SPOTIFY_VERSION=`spotify --version | cut -d "," -f 1`
URL_SPOTIFY="http://repository.spotify.com/pool/non-free/s/spotify-client" URL_SPOTIFY="http://repository.spotify.com/pool/non-free/s/spotify-client"
@ -91,8 +91,8 @@ fi
fi fi
#Get the current versions of Spotify. #Get the current versions of Spotify.
SPOTIFY_32=`curl $URL_SPOTIFY/ | cut -d ">" -f 2 | cut -d "<" -f 1 | grep i386` SPOTIFY_32=`curl $URL_SPOTIFY/ | cut -d ">" -f 2 | cut -d "<" -f 1 | grep i386 | tail -n 1`
SPOTIFY_64=`curl $URL_SPOTIFY/ | cut -d ">" -f 2 | cut -d "<" -f 1 | grep amd64` SPOTIFY_64=`curl $URL_SPOTIFY/ | cut -d ">" -f 2 | cut -d "<" -f 1 | grep amd64 | tail -n 1`
MESSAGE_32=`clear && echo "Downloading $SPOTIFY_32 ($NAME_APP_DOWNLOAD)"` MESSAGE_32=`clear && echo "Downloading $SPOTIFY_32 ($NAME_APP_DOWNLOAD)"`
MESSAGE_64=`clear && echo "Downloading $SPOTIFY_64 ($NAME_APP_DOWNLOAD)"` MESSAGE_64=`clear && echo "Downloading $SPOTIFY_64 ($NAME_APP_DOWNLOAD)"`
if [ $? -eq 0 ] ; then if [ $? -eq 0 ] ; then