mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
Update githubclone.sh
This commit is contained in:
parent
14cb8c460c
commit
d70da5614a
1 changed files with 5 additions and 1 deletions
|
@ -24,9 +24,13 @@ for mirror in "${MIRRORS[@]}"; do
|
|||
# 尝试克隆仓库
|
||||
for i in {1..3}; do
|
||||
echo "Trying to clone from $mirror_url (attempt $i)"
|
||||
if git clone --depth=1 "$mirror_url"; then
|
||||
if git clone "$mirror_url"; then
|
||||
echo "Successfully cloned from $mirror_url"
|
||||
exit 0
|
||||
else
|
||||
echo "Failed to clone from $mirror_url (attempt $i)"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
echo "Failed to clone the repository after multiple attempts. Please check your network connection and try again later."
|
||||
|
|
Loading…
Reference in a new issue