From 8bd01d7bca0a23ba788c007d2e2b6fd45f47f990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=9C=88=E5=A9=B7?= <93903193+xyt52@users.noreply.github.com> Date: Fri, 30 Dec 2022 11:25:22 +0800 Subject: [PATCH] Update git_proxy.sh --- scripts/git_proxy.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/git_proxy.sh b/scripts/git_proxy.sh index 185c42e7..41c4f2a3 100644 --- a/scripts/git_proxy.sh +++ b/scripts/git_proxy.sh @@ -1,12 +1,14 @@ #!/bin/bash #repo=$1 #path=$2 - +url_path=( +https://ghproxy.com/https://github.com +https://github.com) git_clone(){ for r in ${1[*]} do filename=$(echo $r | cut -d '/' -f 2) - for x in ${2[*]} + for x in ${url_path[*]} do if [ -e $filename ]; then echo "$filename was cloned successfully"