From 8b4538441ca4f3faecf8838025ecaa8881980cb6 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Thu, 6 Jul 2023 21:39:32 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E8=AE=BE=E7=BD=AEaria2=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E8=A6=86=E7=9B=96=E6=BA=90=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E5=92=8Ccurl=E8=A1=8C=E4=B8=BA=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trans.sh b/trans.sh index 846e709..e257d7a 100644 --- a/trans.sh +++ b/trans.sh @@ -50,7 +50,7 @@ download() { # axel 在 lightsail 上会占用大量cpu # 先用 aria2 下载 [ -z $file ] && save="" || save="-d / -o $file" - if ! aria2c -x4 $url $save; then + if ! aria2c -x4 --allow-overwrite=true $url $save; then # 出错再用 curl [ -z $file ] && save="-O" || save="-o $file" curl -L $url $save