v1.1.1-test

~修复在导入包含“/”的自定义规则时报错的bug
This commit is contained in:
juewuy
2021-02-18 19:00:31 +08:00
parent 285651915f
commit e668551fd0
3 changed files with 2 additions and 1 deletions

View File

@@ -274,6 +274,7 @@ EOF
while read line;do
[ -z "$(echo "$line" | grep '#')" ] && \
[ -n "$(echo "$line" | grep '\-\ ')" ] && \
line=$(echo "$line" | sed 's#/#\\/#') && \
sed -i "/$line/d" $tmpdir/config.yaml && \
sed -i "/^rules:/a\ $line" $tmpdir/config.yaml
done < $clashdir/rules.yaml