Skip to content

Commit

Permalink
Update sync_custom_clash.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aethersailor authored Jan 18, 2025
1 parent df3a5fa commit 1d800fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync_custom_clash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
# 进入目标仓库
cd target-repo
# 删除 [custom] 之前的内容保留 [custom]
sed -i '1,/^\[custom\]/d' cfg/Custom_Clash_Full.ini
# 删除 [custom] 之前的内容保留 [custom] 行本身)
sed -i '1,/^\[custom\]/ { /^[[]custom[]]/!d }' cfg/Custom_Clash_Full.ini
# 添加内容到文件开头
sed -i '1i ;Custom_Clash_Rules\n;全分组防 DNS 泄漏订阅转换模板\n;作者:https://github.com/Aethersailor\n;项目地址:https://github.com/Aethersailor/Custom_Clash_Rules\n;该订阅模板为 Custom_OpenClash_Rules 项目的衍生项目\n;基于 ACL4SSR 模板魔改而来,感谢原作者!' cfg/Custom_Clash_Full.ini
Expand Down

0 comments on commit 1d800fd

Please sign in to comment.