mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
v1.1.1-test
~修复在导入包含“/”的自定义规则时报错的bug
This commit is contained in:
parent
285651915f
commit
e668551fd0
Binary file not shown.
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user