From 89524d55bdbe4a799d6eb8b4141ed7e2ebd0b3ce Mon Sep 17 00:00:00 2001 From: usrtax Date: Fri, 2 Sep 2022 14:12:33 +0800 Subject: [PATCH] allow set proxy for github (#1198) in china , github is blocked, we use https://ghproxy.com/ for proxy for example use `wget https://ghproxy.com/https://github.com/stilleshan/ServerStatus/archive/master.zip` instead of `wget https://github.com/stilleshan/ServerStatus/archive/master.zip` --- src/cli/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/install.sh b/src/cli/install.sh index 60529129f2..dc9f6aa4c2 100644 --- a/src/cli/install.sh +++ b/src/cli/install.sh @@ -80,7 +80,9 @@ if [[ $target = darwin-x64 ]]; then fi fi -github_repo="https://github.com/oven-sh/bun" +GITHUB=${GITHUB-"https://github.com"} + +github_repo="$GITHUB/oven-sh/bun" if [[ $target = darwin-x64 ]]; then # If AVX2 isn't supported, use the -baseline build