wok-6.x rev 24042
modified stuff/get-anydesk
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 15 15:26:18 2021 +0100 (2021-04-15) |
parents | aae4e23265ae |
children | d44f69067aca |
files | get-anydesk/stuff/get-anydesk |
line diff
1.1 --- a/get-anydesk/stuff/get-anydesk Wed Apr 14 16:38:51 2021 +0100 1.2 +++ b/get-anydesk/stuff/get-anydesk Thu Apr 15 15:26:18 2021 +0100 1.3 @@ -2,8 +2,9 @@ 1.4 # 1.5 # get-anydesk - create and install SliTaz package anydesk 1.6 # 1.7 -# (C) 2020 SliTaz - GNU General Public License v3. 1.8 +# (C) 2021 SliTaz - GNU General Public License v3. 1.9 # Author : HGT 1.10 +# modified by HGT on 2021-04-15 1.11 # 1.12 1.13 # === Initialisations === 1.14 @@ -15,7 +16,6 @@ 1.15 MAINTAINER="nobody@slitaz.org" 1.16 LICENSE="non-free" 1.17 WEB_SITE="https://anydesk.com/packagename/" 1.18 -#DEPENDS="libglu-mesa" 1.19 1.20 # Declare functions check_root, status, ... 1.21 . /lib/libtaz.sh 1.22 @@ -104,11 +104,18 @@ 1.23 # === Fetch Debian package, if not existing === 1.24 if [ "$version" == "latest" ] 1.25 then 1.26 - VERSION="$(wget --no-check-certificate -O - https://anydesk.com/en/downloads/linux | \ 1.27 - sed -n '/i386.deb">.*option/p' | sed 's|.*_\(.*\)_.*|\1|' )" 1.28 - FILE="${PACKAGE}_${VERSION}_i386.deb" 1.29 - WGET_URL="https://download.anydesk.com/linux/$FILE" 1.30 + VERSION="$(wget -q --no-check-certificate -O - https://anydesk.com/en/downloads/linux | \ 1.31 + sed -n '/i386.deb">.*Debian.*/p' | sed 's|.*_\(.*\)_.*|\1|' )" 1.32 + if [ -z "$VERSION" ] 1.33 + then 1.34 + echo "Could not determine latest version. Call get-anydesk with version parameter." 1.35 + exit 1 1.36 + else 1.37 + FILE="${PACKAGE}_${VERSION}_i386.deb" 1.38 + WGET_URL="https://download.anydesk.com/linux/$FILE" 1.39 + fi 1.40 else 1.41 + # for available versions see https://download.anydesk.com/linux/ 1.42 VERSION=$version 1.43 FILE="${PACKAGE}_${VERSION}_i386.deb" 1.44 WGET_URL="https://download.anydesk.com/linux/deb/$FILE"