Commit c72158b3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play wpsoffice-cn: fix version getting

parent 99117bf2
...@@ -10,7 +10,9 @@ TIPS="Run epm play wpsoffice=<version> to install some specific version" ...@@ -10,7 +10,9 @@ TIPS="Run epm play wpsoffice=<version> to install some specific version"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then if [ "$VERSION" = "*" ] ; then
VERSION=$(eget -O- https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/main/deb/wpsoffice/ | grep -oP '[^/]+_\K[\d.]+(?=_amd64\.deb)' | sort -V | tail -n1) #VERSION=$(eget -O- https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/main/deb/wpsoffice/ | grep -oP '[^/]+_\K[\d.]+(?=_amd64\.deb)' | sort -V | tail -n1)
VERSION="$(eget -O- https://www.wps.cn/product/wpslinux | grep '"banner_txt"' | sed -e 's|.*banner_txt">||' -e "s|</p>||")"
[ -n "$VERSION" ] || fatal "Can't get version"
fi fi
PKGURL="https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/main/deb/wpsoffice/wpsoffice_${VERSION}_amd64.deb" PKGURL="https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/main/deb/wpsoffice/wpsoffice_${VERSION}_amd64.deb"
......
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