~修复部分小米设备开机启动失败的bug
~修复自定义规则无法正确删除的bug
~修复安装时提示找不到task.sh文件的bug
~修复部分小米设备重启后依然需要输入clash命令的bug
This commit is contained in:
juewuy 2024-01-03 18:23:37 +08:00
parent 4d66cbbf0e
commit 61936e3c3f
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -278,7 +278,7 @@ setrules(){
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
sed -i "/$text/d" $YAMLSDIR/rules.yaml
sleep 1