Changed url to be more dynamic

This commit is contained in:
silvernode 2015-09-03 21:11:18 -07:00
parent 49cb01b639
commit edbd1a36e1

View File

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
# Name : telegram-installer.sh
############################################################################ ############################################################################
## This program is free software: you can redistribute it and/or modify ## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by ## it under the terms of the GNU General Public License as published by
@ -15,10 +16,8 @@
## along with this program. If not, see <http://www.gnu.org/licenses/>. ## along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################ ############################################################################
PKGNAME="tsetup" URL="https://tdesktop.com/linux"
VERSION="0.8.55" FILE="tsetup.tar.xz"
URL="https://updates.tdesktop.com/tlinux/${PKGNAME}.${VERSION}.tar.xz"
FILE="${PKGNAME}.${VERSION}.tar.xz"
OUTDIR="${HOME}/.telegram/bin" OUTDIR="${HOME}/.telegram/bin"
#check and create directories #check and create directories
@ -57,7 +56,7 @@ main(){
else else
if [ ! -f /tmp/${FILE} ];then if [ ! -f /tmp/${FILE} ];then
wget ${URL} -P /tmp wget -O /tmp/${FILE} ${URL}
tar xvf /tmp/${FILE} -C ${OUTDIR} tar xvf /tmp/${FILE} -C ${OUTDIR}
echo echo
askOpen askOpen