use regex to replace termux source

This commit is contained in:
Reiuji Utsuho 2019-05-17 14:15:04 +08:00
parent d3ad85bd88
commit 7afe404d6d
No known key found for this signature in database
GPG Key ID: 144DD578ACAF4569

View File

@ -33,7 +33,7 @@ Termux 是运行在 Android 上的 terminal。不需要root运行于内部存
使用如下命令自动替换官方源为 TUNA 镜像源
``` bash
sed -i 's@dl.bintray.com/termux/termux-packages-24@mirrors.tuna.tsinghua.edu.cn/termux@' $PREFIX/etc/apt/sources.list
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux stable main@' $PREFIX/etc/apt/sources.list
pkg up
```