From edbd1a36e19d0b23fdb55e9f8c4063a560052439 Mon Sep 17 00:00:00 2001 From: silvernode Date: Thu, 3 Sep 2015 21:11:18 -0700 Subject: [PATCH] Changed url to be more dynamic --- telegram-installer.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/telegram-installer.sh b/telegram-installer.sh index 0fa5801..b249669 100755 --- a/telegram-installer.sh +++ b/telegram-installer.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Name : telegram-installer.sh ############################################################################ ## 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 @@ -15,10 +16,8 @@ ## along with this program. If not, see . ############################################################################ -PKGNAME="tsetup" -VERSION="0.8.55" -URL="https://updates.tdesktop.com/tlinux/${PKGNAME}.${VERSION}.tar.xz" -FILE="${PKGNAME}.${VERSION}.tar.xz" +URL="https://tdesktop.com/linux" +FILE="tsetup.tar.xz" OUTDIR="${HOME}/.telegram/bin" #check and create directories @@ -57,7 +56,7 @@ main(){ else if [ ! -f /tmp/${FILE} ];then - wget ${URL} -P /tmp + wget -O /tmp/${FILE} ${URL} tar xvf /tmp/${FILE} -C ${OUTDIR} echo askOpen