Skip to content

Commit

Permalink
add aria2c option --allow-overwrite=true
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow committed Jun 2, 2024
1 parent 131ef9a commit ddde28e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __frzr-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -616,17 +616,17 @@ main() {
IMG_PATH=
if [ $FRZR_STEAM_PROGRESS -eq 1 ]; then
aria2c --connect-timeout=10 --file-allocation=none -x 16 -s 16 \
--checksum=sha-256="${CHECKSUM}" --auto-file-renaming=false \
--checksum=sha-256="${CHECKSUM}" --auto-file-renaming=false --allow-overwrite=true \
--console-log-level=warn --stderr=true -o "${FILE_NAME}" -d "${MOUNT_PATH}" "${IMG_URL}" 2>&1 | \
grep --line-buffered -oP '\d+(?=%)' | clean_progress 91 %
elif [ -z ${SHOW_UI} ]; then
echo "downloading ${NAME}..."
aria2c --connect-timeout=10 --file-allocation=none -x 16 -s 16 \
--checksum=sha-256="${CHECKSUM}" --auto-file-renaming=false \
--checksum=sha-256="${CHECKSUM}" --auto-file-renaming=false --allow-overwrite=true \
--console-log-level=warn -o "${FILE_NAME}" -d "${MOUNT_PATH}" "${IMG_URL}"
else
aria2c --connect-timeout=10 --file-allocation=none -x 16 -s 16 \
--checksum=sha-256="${CHECKSUM}" --auto-file-renaming=false \
--checksum=sha-256="${CHECKSUM}" --auto-file-renaming=false --allow-overwrite=true \
--console-log-level=warn --stderr=true -o "${FILE_NAME}" -d "${MOUNT_PATH}" "${IMG_URL}" 2>&1 | \
grep --line-buffered -oP '\d+(?=%)' | clean_progress 100 | \
whiptail --gauge "下载系统镜像 (${NAME}) " 10 50 0
Expand Down

0 comments on commit ddde28e

Please sign in to comment.