From 50416bd9bbfb393778b813982b191ff32d53b94a Mon Sep 17 00:00:00 2001 From: Leon <62660101+Oreomeow@users.noreply.github.com> Date: Tue, 27 Jul 2021 13:46:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8curl=20-sL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/1customCDN.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/sh/1customCDN.sh b/Scripts/sh/1customCDN.sh index d90c329..d116087 100644 --- a/Scripts/sh/1customCDN.sh +++ b/Scripts/sh/1customCDN.sh @@ -37,7 +37,7 @@ if [ ! -a "$config_shell_path" ]; then touch $config_shell_path fi if [ "${Rconfig}" = 'y' -o "${Rall}" = 1 ]; then - curl -s --connect-timeout 3 https://raw.githubusercontents.com/Oreomeow/VIP/main/Conf/Qinglong/config.sample.sh > $config_shell_path + curl -sL --connect-timeout 3 https://raw.githubusercontents.com/Oreomeow/VIP/main/Conf/Qinglong/config.sample.sh > $config_shell_path cp $config_shell_path $dir_shell/config.sh # 判断是否下载成功 config_size=$(ls -l $config_shell_path | awk '{print $5}') @@ -55,7 +55,7 @@ if [ ! -a "$extra_shell_path" ]; then touch $extra_shell_path fi if [ "${Rextra}" = 'y' -o "${Rall}" = 1 ]; then - curl -s --connect-timeout 3 https://raw.githubusercontents.com/Oreomeow/VIP/main/Tasks/qlrepo/extra.sh > $extra_shell_path + curl -sL --connect-timeout 3 https://raw.githubusercontents.com/Oreomeow/VIP/main/Tasks/qlrepo/extra.sh > $extra_shell_path cp $extra_shell_path $dir_shell/extra.sh # 判断是否下载成功 extra_size=$(ls -l $extra_shell_path | awk '{print $5}') @@ -87,7 +87,7 @@ if [ ! -a "$code_shell_path" ]; then touch $code_shell_path fi if [ "${Rcode}" = 'y' -o "${Rall}" = 1 ]; then - curl -s --connect-timeout 3 https://raw.githubusercontents.com/Oreomeow/VIP/main/Scripts/sh/Helpcode2.8/code.sh > $code_shell_path + curl -sL --connect-timeout 3 https://raw.githubusercontents.com/Oreomeow/VIP/main/Scripts/sh/Helpcode2.8/code.sh > $code_shell_path cp $code_shell_path $dir_shell/code.sh # 判断是否下载成功 code_size=$(ls -l $code_shell_path | awk '{print $5}') @@ -119,7 +119,7 @@ if [ ! -a "$task_before_shell_path" ] ; then touch $task_before_shell_path fi if [ "${Rbefore}" = 'y' -o "${Rall}" = 1 ]; then - curl -s --connect-timeout 3 https://raw.githubusercontents.com/Oreomeow/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh > $task_before_shell_path + curl -sL --connect-timeout 3 https://raw.githubusercontents.com/Oreomeow/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh > $task_before_shell_path # 判断是否下载成功 task_before_size=$(ls -l $task_before_shell_path | awk '{print $5}') if (( $(echo "${task_before_size} < 100" | bc -l) )); then