diff --git a/README_template.md b/README_template.md index b7c57a1a5..7e8661f74 100644 --- a/README_template.md +++ b/README_template.md @@ -89,11 +89,7 @@ hosts 文件在每个系统的位置不一,详情如下: #### GNU(Ubuntu/CentOS/Fedora) -``` -sudo -i -sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts` -exit -``` +`sudo sh -c 'sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts'` #### BSD/macOS