Update git_proxy.sh

This commit is contained in:
徐月婷 2022-12-30 11:25:22 +08:00 committed by GitHub
parent 5ce4a05c41
commit 8bd01d7bca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"