Changeset 5654


Ignore:
Timestamp:
Aug 7, 2017, 9:41:37 AM (22 months ago)
Author:
Juanma
Message:

Updated telegram installer

File:
1 edited

Legend:

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

    r4906 r5654  
    22#set -x
    33
    4 TVERSION=1.0.14
     4#Get last version
     5TVERSION=$(wget -qO- https://desktop.telegram.org/changelog | sed -e 's/<[^>]*>//g;/^\s*$/d' | grep -o 'v [0-9.]*' -m1 | cut -d ' ' -f2)
     6
     7#TVERSION=1.0.14
    58PACKAGE_NAME="Telegram"
    69if [[ `arch` == "x86_64" ]]
     
    2831        mkdir -p $DESTDIR
    2932        zero-lliurex-wget $TURL$TSETUP $DESTDIR
    30         if [ $? -eq 0 ]
     33        if [ -s ${DESTDIR}"/"${TSETUP} ]
    3134        then
    3235                FIRSTPWD=$PWD
     
    4649        else
    4750                su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Package $PACKAGE_NAME is not installed in your system, please  retry again or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums'" $USER   
    48                 rm -r $DESTDIR
     51                rm -fr $DESTDIR
    4952        fi
    5053fi
Note: See TracChangeset for help on using the changeset viewer.