diff --git a/shell/update.sh b/shell/update.sh index faad93e8..01e0ce6a 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -152,11 +152,12 @@ update_repo() { local repo_path="${dir_repo}/${author}_${repo}" [[ $branch ]] && repo_path="${repo_path}_${branch}" + local formatUrl="${github_proxy_url}${url/https:\/\/ghproxy.com\//}" if [ -d ${repo_path}/.git ]; then - reset_romote_url ${repo_path} "${github_proxy_url}${url/https:\/\/ghproxy.com\//}" "${branch}" + reset_romote_url ${repo_path} "${formatUrl}" "${branch}" git_pull_scripts ${repo_path} "${branch}" else - git_clone_scripts ${url} ${repo_path} "${branch}" + git_clone_scripts "${formatUrl}" ${repo_path} "${branch}" fi if [[ $exit_status -eq 0 ]]; then echo -e "\nĉ›´ĉ–°${repo_path}ĉˆċŠŸ...\n"