From 2eda872f0e4a623dacc050bef901c21ba2459a82 Mon Sep 17 00:00:00 2001 From: Leon <62660101+Oreomeow@users.noreply.github.com> Date: Tue, 27 Jul 2021 14:00:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8cp=20task=5Fbefore.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/1customCDN.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/sh/1customCDN.sh b/Scripts/sh/1customCDN.sh index d116087..c961bb2 100644 --- a/Scripts/sh/1customCDN.sh +++ b/Scripts/sh/1customCDN.sh @@ -115,11 +115,12 @@ fi # 下载 task_before.sh -if [ ! -a "$task_before_shell_path" ] ; then +if [ ! -a "$task_before_shell_path" ]; then touch $task_before_shell_path fi if [ "${Rbefore}" = 'y' -o "${Rall}" = 1 ]; then curl -sL --connect-timeout 3 https://raw.githubusercontents.com/Oreomeow/VIP/main/Scripts/sh/Helpcode2.8/task_before.sh > $task_before_shell_path + cp $task_before_shell_path $dir_shell/task_before.sh # 判断是否下载成功 task_before_size=$(ls -l $task_before_shell_path | awk '{print $5}') if (( $(echo "${task_before_size} < 100" | bc -l) )); then