移除随机延迟相关配置及 ProxyUrl 默认值,修复拉库通知可能失败

This commit is contained in:
whyour
2023-11-05 01:02:31 +08:00
parent c3a0f58003
commit 4a3ac7dc4b
6 changed files with 15 additions and 29 deletions
+1 -5
View File
@@ -70,7 +70,6 @@ import_config() {
ql_base_url=${QlBaseUrl:-"/"}
ql_port=${QlPort:-"5700"}
command_timeout_time=${CommandTimeoutTime:-""}
proxy_url=${ProxyUrl:-""}
file_extensions=${RepoFileExtensions:-"js py"}
current_branch=${QL_BRANCH}
@@ -88,9 +87,6 @@ import_config() {
set_proxy() {
local proxy="$1"
if [[ $proxy ]]; then
proxy_url="$proxy"
fi
if [[ $proxy_url ]]; then
export http_proxy="${proxy_url}"
export https_proxy="${proxy_url}"
fi
@@ -293,7 +289,7 @@ git_clone_scripts() {
set_proxy "$proxy"
git clone --depth=1 $part_cmd $url $dir 2>&1
git clone --depth=1 $part_cmd $url $dir
exit_status=$?
unset_proxy