luci-app-unblockneteasemusic: meaningless update
This commit is contained in:
parent
a7b0da1800
commit
f86a0073d9
@ -142,7 +142,6 @@ start()
|
||||
stop()
|
||||
{
|
||||
{ ps |grep "unblockneteasemusic" |grep "app.js" |grep -v "grep" |awk '{print $1}' |xargs kill -9; } >/dev/null 2>&1
|
||||
|
||||
|
||||
sed -i '/unblockneteasemusic/d' /etc/crontabs/root
|
||||
/etc/init.d/cron restart >/dev/null 2>&1
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
# https://github.com/project-openwrt
|
||||
|
||||
commit_info="$(curl -s https://github.com/nondanee/UnblockNeteaseMusic/commits/master)"
|
||||
latest_ver="$(echo -e "${commit_info}" |tr '\n' ' ' | grep -Eo 'commit\/[0-9a-z]+' |sed -n 1p |sed 's#commit/##g')"
|
||||
latest_ver="$(echo -e "${commit_info}" |tr -d '\n' | grep -Eo 'commit\/[0-9a-z]+' |sed -n 1p |sed 's#commit/##g')"
|
||||
latest_ver_mini="$(echo -e "${commit_info}" |tr -d '\n' | grep -Eo 'BtnGroup-item"> [0-9a-z]+' |sed -n 1p |sed 's#BtnGroup-item"> ##g')"
|
||||
|
||||
[ -z "${commit_info}" ] && echo "无法检测最新版本,请稍后重试" && exit 1
|
||||
@ -18,4 +18,4 @@ else
|
||||
else
|
||||
echo "目前已是最新版本,无需更新"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -16,7 +16,7 @@ function clean_log(){
|
||||
}
|
||||
|
||||
function check_latest_version(){
|
||||
latest_ver="$(curl -s https://github.com/nondanee/UnblockNeteaseMusic/commits/master |tr '\n' ' ' | grep -Eo 'commit\/[0-9a-z]+' |sed -n 1p |sed 's#commit/##g')"
|
||||
latest_ver="$(curl -s 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/unblockneteasemusic.log && exit 1
|
||||
if [ ! -e "/usr/share/unblockneteasemusic/local_ver" ]; then
|
||||
clean_log
|
||||
@ -64,4 +64,4 @@ function main(){
|
||||
check_latest_version
|
||||
}
|
||||
|
||||
main
|
||||
main
|
||||
|
||||
Loading…
Reference in New Issue
Block a user