luci-app-unblockmusic: add wget depend

This commit is contained in:
coolsnowwolf 2020-02-16 18:18:09 +08:00
parent 27f59d8866
commit f5d10212c2
2 changed files with 3 additions and 3 deletions

View File

@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-unblockmusic
PKG_VERSION:=2.3.1
PKG_RELEASE:=3
PKG_RELEASE:=5
PKG_LICENSE:=Apache-2.0
LUCI_TITLE:=LuCI support for Unblock NeteaseCloudMusic
LUCI_DEPENDS:=+UnblockNeteaseMusic +dnsmasq-full +ipset
LUCI_DEPENDS:=+UnblockNeteaseMusic +dnsmasq-full +ipset +wget
LUCI_PKGARCH:=all
PKG_MAINTAINER:=lean

View File

@ -10,7 +10,7 @@ function clean_log(){
}
function check_latest_version(){
latest_ver="$(wget -O- https://github.com/nondanee/UnblockNeteaseMusic/commits/master |tr -d '\n' |grep -Eo 'commit\/[0-9a-z]+' |sed -n 1p |sed 's#commit/##g')"
latest_ver="$(wget-ssl --no-check-certificate -O- https://github.com/nondanee/UnblockNeteaseMusic/commits/master |tr -d '\n' |grep -Eo 'commit\/[0-9a-z]+' |sed -n 1p |sed 's#commit/##g')"
[ -z "${latest_ver}" ] && echo -e "\nFailed to check latest version, please try again later." >>/tmp/unblockmusic_update.log && exit 1
if [ ! -e "/usr/share/UnblockNeteaseMusic/local_ver" ]; then
clean_log