v1.8.2i
~修复部分小米设备开机启动失败的bug ~修复自定义规则无法正确删除的bug ~修复安装时提示找不到task.sh文件的bug ~修复部分小米设备重启后依然需要输入clash命令的bug
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -278,7 +278,7 @@ setrules(){
|
|||||||
0) ;;
|
0) ;;
|
||||||
'') ;;
|
'') ;;
|
||||||
*)
|
*)
|
||||||
text=$(cat $YAMLSDIR/rules.yaml | grep -Ev '^#' | sed -n "$num p")
|
text=$(cat $YAMLSDIR/rules.yaml | grep -Ev '^#' | sed -n "$num p" | awk '{print $2}')
|
||||||
if [ -n $text ];then
|
if [ -n $text ];then
|
||||||
sed -i "/$text/d" $YAMLSDIR/rules.yaml
|
sed -i "/$text/d" $YAMLSDIR/rules.yaml
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in New Issue
Block a user