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

Binary file not shown.

View File

@ -1,4 +1,4 @@
clash_v=1.3.5
clashpre_v=2020.12.27
versionsh=1.1.0
GeoIP_v=20210210
versionsh=1.1.1

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