Commit d3084302 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play teamspeak3: parse version from vendor (eterbug #17822)

parent 017ca1e5
......@@ -8,8 +8,9 @@ URL="https://www.teamspeak.com/"
. $(dirname $0)/common.sh
# TODO: check latest version here: https://www.teamspeak.com/en/downloads/#ts3client
[ "$VERSION" = "*" ] && VERSION=3.6.1
if [ "$VERSION" = "*" ] ; then
VERSION=$(eget -O- https://teamspeak.com/en/downloads/#ts3client | grep -oP 'https://files\.teamspeak-services\.com/releases/client/3\.\d+\.\d+/TeamSpeak3-Client-linux_amd64-3\.(\d+\.\d+)\.run' | head -n 1 | grep -oP '3\.(\d+\.\d+)' | head -n 1)
fi
PKGURL="https://files.teamspeak-services.com/releases/client/$VERSION/TeamSpeak3-Client-linux_amd64-$VERSION.run"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment