diff options
author | Erich Eckner <git@eckner.net> | 2017-09-05 08:47:48 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-05 08:47:48 +0200 |
commit | 6fe66049b71ad0cdde41359a976973219ea49755 (patch) | |
tree | 48512d9b380f6ffa4ce1fc7a1eaa8419765a5a7e | |
parent | 764554bbe6b2249ec6c78e8d3db42200fbfe52e1 (diff) | |
download | archlinuxewe-6fe66049b71ad0cdde41359a976973219ea49755.tar.xz |
checkVersions kennt jetzt auch tightvnc
-rwxr-xr-x | checkVersions | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/checkVersions b/checkVersions index a97c4dd54..3eef2a6f4 100755 --- a/checkVersions +++ b/checkVersions @@ -12,7 +12,7 @@ usage() { curl_it() { local source="$1" shift - curl --connect-timeout 10 -s "$@" "${source}" + curl --compressed --connect-timeout 10 -s "$@" "${source}" } me="$(readlink -f $0)" @@ -121,7 +121,15 @@ then sort -V | \ tail -n1 )" - elif [ "${pkgname}" == "g95" ] + elif [ "${pkgname}" = 'tightvnc' ] + then + remVer=$( + curl_it 'https://www.tightvnc.com/download-old.php' | \ + tr '"' '\n' | \ + grep -x 'https://www\.tightvnc\.com/download/\([0-9.]\+\)/tightvnc-\1_unixsrc\.tar\.bz2' | \ + sed 's|^https://www\.tightvnc\.com/download/\([0-9.]\+\)/tightvnc-\1_unixsrc\.tar\.bz2$|\1|' + ) + elif [ "${pkgname}" = 'g95' ] then remVer='0.94' elif [ "${pkgname}" = 'dcron' ] |