aria2 始终使用相对路径,但我们代码使用绝对路径,所以要设置当前目录为/
@@ -47,7 +47,7 @@ download() {
# axel 在 lightsail 上会占用大量cpu
# 先用 aria2 下载
[ -z $file ] && save="" || save="-o $file"
[ -z $file ] && save="" || save="-d / -o $file"
if ! aria2c -x4 $url $save; then
# 出错再用 curl
[ -z $file ] && save="-O" || save="-o $file"
The note is not visible to the blocked user.