Ignore:
Timestamp:
Aug 8, 2017, 8:28:37 AM (2 years ago)
Author:
Juanma
Message:

Removed debug messages in telegram installer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zero-lliurex-installers/trunk/fuentes/zero-lliurex-telegram.zmds/zero-lliurex-telegram.zmd

    r5654 r5666  
    11#!/bin/bash
    22#set -x
     3PACKAGE_NAME="Telegram"
    34
    45#Get last version
    5 TVERSION=$(wget -qO- https://desktop.telegram.org/changelog | sed -e 's/<[^>]*>//g;/^\s*$/d' | grep -o 'v [0-9.]*' -m1 | cut -d ' ' -f2)
     6TCH_URL="https://desktop.telegram.org/changelog"
     7TVERSION=$(wget -qO- $TCH_URL | sed -e 's/<[^>]*>//g;/^\s*$/d' | grep -o 'v [0-9.]*' -m1 | cut -d ' ' -f2)
    68
    7 #TVERSION=1.0.14
    8 PACKAGE_NAME="Telegram"
    9 if [[ `arch` == "x86_64" ]]
     9if [[ $(arch) == "x86_64" ]]
    1010then
    11         TSETUP="tsetup."$TVERSION".tar.xz"
     11        TSETUP="tsetup.${TVERSION}.tar.xz"
    1212        TURL="https://updates.tdesktop.com/tlinux/"
    1313else
    14         TSETUP="tsetup32."$TVERSION".tar.xz"
     14        TSETUP="tsetup32.${TVERSION}.tar.xz"
    1515        TURL="https://updates.tdesktop.com/tlinux32/"
    1616fi
     
    2323if [ $? -eq 0 ]
    2424then
    25         echo "Downloading telegram..."
    2625        USERHOME=$(getent passwd $USER | cut -f6 -d ':')
    27         echo $USER
    28         echo $USERHOME
    2926        BINDIR=$USERHOME"/.local/bin"
    3027        DESTDIR=$BINDIR"/telegram"
    3128        mkdir -p $DESTDIR
    32         zero-lliurex-wget $TURL$TSETUP $DESTDIR
     29        zero-lliurex-wget ${TURL}${TSETUP} ${DESTDIR}
    3330        if [ -s ${DESTDIR}"/"${TSETUP} ]
    3431        then
    3532                FIRSTPWD=$PWD
    3633                cd $DESTDIR
    37                 tar -Jxvf $TSETUP
    38                 chown -vR $USER:$USER $BINDIR
     34                tar -Jxf $TSETUP
     35                chown -R ${USER}:${USER} $BINDIR
    3936                if [ $? -eq 0 ]
    4037                then
Note: See TracChangeset for help on using the changeset viewer.