#!/usr/bin/env bash
set -e

TARGET="/lhcos-data/downloads_gtnewhorizons"

cd "$TARGET" || {
  echo "❌ 无法进入目录 $TARGET"
  exit 1
}

curl -fsSL http://downloads.gtnewhorizons.com/?aria2 | \
aria2c -c -i - -R \
  --allow-overwrite=false \
  --all-proxy="http://10.0.0.12:7890" \
  --retry-wait=10 --timeout=60

