Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
E7KMbb committed Mar 28, 2021
1 parent d7beb13 commit 7dca7ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "UnblockNeteaseMusic"]
path = UnblockNeteaseMusic
url = https://github.com/nondanee/UnblockNeteaseMusic
[submodule "UnblockNeteaseMusic"]
path = UnblockNeteaseMusic
url = https://github.com/nondanee/UnblockNeteaseMusic

2 changes: 1 addition & 1 deletion module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=UnblockNeteaseMusic
name=UnblockNeteaseMusic for Magisk
version=Canary
versionCode=20210317
versionCode=20210328
author=依然的爱
description=网易云音乐解锁变灰,服务状态控制请在在终端以su权限输入UnblockNeteaseMusic以控制,默认开机自启
4 changes: 2 additions & 2 deletions system/bin/UNM
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ip6tables -t nat -S >/dev/null 2>&1 && IPv6support=true || IPv6support=false #

check() {
boot_start=$(grep boot_start ${UnblockNeteaseMusic_path}/service.sh | head -n 1 | awk -F '=' '{print $2}')
if [ -e ${UnblockNeteaseMusic_path}/UnblockNeteaseMusic.pid ];then
if [ -e ${pid_file} ];then
echo "正在运行"
else
echo "没有运行"
Expand Down Expand Up @@ -77,7 +77,7 @@ update() {
latest_UnblockNeteaseMusic_version=`curl -k -s -I "${UnblockNeteaseMusic_link}/latest" | grep -i location | grep -o "tag.*" | grep -o "v[0-9.]*"`
download_link="https://codeload.github.com/nondanee/UnblockNeteaseMusic/zip/${latest_UnblockNeteaseMusic_version}"

if [ -e ${UnblockNeteaseMusic_path}/UnblockNeteaseMusic.pid ];then
if [ -e ${pid_file} ];then
stop
fi
echo "开始更新"
Expand Down

0 comments on commit 7dca7ff

Please sign in to comment.