-
-
Notifications
You must be signed in to change notification settings - Fork 238
feat: 自动化linux上docker换源过程 #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@happy-game 👍👍👍 我很惊讶于你已经可以如此熟练地运用 有两个问题:
|
这样的多行的形式存在,因此需要跨行匹配。 |
你考虑的很正确,可以把原因简单写在代码注释里 刚才仔细看了一下这个正则表达式, 我觉得很好,没什么问题,不需要修改了 |
好的,那我把这些问题解决掉 |
完美的实现 👍👍👍 @happy-game 昨天给另一个贡献者写了一段回复,我觉得同样可以分享给你。
Happy changing source~ |
jq
将新增源添加到源列表首位, 会检查是否重复jq
时使用sed
替换"registry-mirrors":[xxx]
中内容