Commit 6f3465eb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play wpsoffice: fix url

parent e5515745
...@@ -16,13 +16,14 @@ if [ "$VERSION" = "*" ] ; then ...@@ -16,13 +16,14 @@ if [ "$VERSION" = "*" ] ; then
VERSION="$pkgver.XA" VERSION="$pkgver.XA"
fi fi
mversion=$(echo "$VERSION" | sed -e 's|\.XA$||' -e 's|.*\.||')
pkgtype=$(epm print info -p) pkgtype=$(epm print info -p)
case $pkgtype in case $pkgtype in
rpm) rpm)
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${VERSION##*.}/wps-office-${VERSION}-1.x86_64.rpm" PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/$mversion/wps-office-${VERSION}-1.x86_64.rpm"
;; ;;
*) *)
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${VERSION##*.}/wps-office_${VERSION}_amd64.deb" PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/$mversion/wps-office_${VERSION}_amd64.deb"
;; ;;
esac esac
......
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