1
0
mirror of synced 2026-04-29 22:38:46 +08:00

Merge pull request #217 from bond-aspecta/main

Update BSD/macOS one-line command
This commit is contained in:
削微寒
2024-04-10 12:32:06 +08:00
committed by GitHub

View File

@@ -139,7 +139,7 @@ hosts 文件在每个系统的位置不一,详情如下:
#### BSD/macOS
`sed -i "" "/# GitHub520 Host Start/,/# Github520 Host End/d" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts`
`sudo sed -i "" "/# GitHub520 Host Start/,/# Github520 Host End/d" /etc/hosts && curl https://raw.hellogithub.com/hosts | sudo tee -a /etc/hosts`
将上面的命令添加到 cron可定时执行。使用前确保 GitHub520 内容在该文件最后部分。