wok rev 24032

modified get-teamviewer to be able to fetch versions < 13
author Hans-G?nter Theisgen
date Tue Apr 06 14:38:05 2021 +0100 (10 days ago)
parents b4b3cde755b0
children 2984cf98c782
files get-teamviewer/stuff/get-teamviewer
line diff
     1.1 --- a/get-teamviewer/stuff/get-teamviewer	Tue Apr 06 13:52:57 2021 +0100
     1.2 +++ b/get-teamviewer/stuff/get-teamviewer	Tue Apr 06 14:38:05 2021 +0100
     1.3 @@ -4,7 +4,7 @@
     1.4  # (C) 2021 SliTaz - GNU General Public License v3.
     1.5  #
     1.6  # Author : 
     1.7 -# modified by HGT on 2021-04-05
     1.8 +# modified by HGT on 2021-04-06
     1.9  #
    1.10  
    1.11  #       === Initialisations ===
    1.12 @@ -103,9 +103,14 @@
    1.13  	WGET_URL=$(wget --no-check-certificate -O - ${WEB_SITE}en/download/linux | sed '/i386/!d;s/.*"\([^"]*i386[^"]*\).*/\1/;q')
    1.14  	FILE=$(basename $WGET_URL)
    1.15    else
    1.16 -        VERSION=$version
    1.17 -        FILE="${PACKAGE}_i386.deb"
    1.18 -        WGET_URL="https://download.teamviewer.com/download/linux/version_$VERSION/$FILE"
    1.19 +	VERSION=$version
    1.20 +	FILE="${PACKAGE}_i386.deb"
    1.21 +	if [[ ${VERSION:0:2} -gt 12 ]]
    1.22 +	  then
    1.23 +		WGET_URL="https://download.teamviewer.com/download/linux/version_$VERSION/$FILE"
    1.24 +	  else
    1.25 +		WGET_URL="https://download.teamviewer.com/download/version_$VERSION/$FILE"
    1.26 +	fi
    1.27  fi
    1.28  
    1.29  CUR_DIR=$(pwd)