mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Update git_proxy.sh
This commit is contained in:
parent
5ce4a05c41
commit
8bd01d7bca
1 changed files with 4 additions and 2 deletions
|
@ -1,12 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#repo=$1
|
#repo=$1
|
||||||
#path=$2
|
#path=$2
|
||||||
|
url_path=(
|
||||||
|
https://ghproxy.com/https://github.com
|
||||||
|
https://github.com)
|
||||||
git_clone(){
|
git_clone(){
|
||||||
for r in ${1[*]}
|
for r in ${1[*]}
|
||||||
do
|
do
|
||||||
filename=$(echo $r | cut -d '/' -f 2)
|
filename=$(echo $r | cut -d '/' -f 2)
|
||||||
for x in ${2[*]}
|
for x in ${url_path[*]}
|
||||||
do
|
do
|
||||||
if [ -e $filename ]; then
|
if [ -e $filename ]; then
|
||||||
echo "$filename was cloned successfully"
|
echo "$filename was cloned successfully"
|
||||||
|
|
Loading…
Reference in a new issue