更改代理

This commit is contained in:
bin456789
2024-04-05 19:23:55 +08:00
parent ef16d20a44
commit c2aaa967c1
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
set -eE
confhome=https://raw.githubusercontent.com/bin456789/reinstall/main
github_proxy=raw.gitmirror.com
github_proxy=https://mirror.ghproxy.com/https://raw.githubusercontent.com
# https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html
export LC_ALL=C
@ -2089,8 +2089,8 @@ esac
# jsdelivr 有12小时缓存
# https://github.com/XIU2/UserScript/blob/master/GithubEnhanced-High-Speed-Download.user.js#L31
if [ -n "$github_proxy" ] && [[ "$confhome" = http*://raw.githubusercontent.com/* ]] && is_in_china; then
# confhome=$github_proxy/$confhome
confhome=${confhome/raw.githubusercontent.com/$github_proxy}
confhome=${confhome/http:\/\//https:\/\/}
confhome=${confhome/https:\/\/raw.githubusercontent.com/$github_proxy}
fi
# 以下目标系统不需要两步安装