From 581f7a44d59086424b27fdce55fd0102d6ce56ff Mon Sep 17 00:00:00 2001 From: Phil Date: Fri, 25 Feb 2022 20:04:05 +0000 Subject: [PATCH] Fix for zsync https failure --- quickget | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 1c70e90..436dc00 100755 --- a/quickget +++ b/quickget @@ -625,8 +625,9 @@ function zsync_get() { exit 1 fi - if ! zsync "${URL}.zsync" -i "${DIR}/${OUT}" -o "${DIR}/${OUT}" 2>/dev/null; then - echo "ERROR! Failed to download ${URL}.zsync" + # Only force http for zsync - not earlier because we might fall through here + if ! zsync "${URL/https/http}.zsync" -i "${DIR}/${OUT}" -o "${DIR}/${OUT}" 2>/dev/null; then + echo "ERROR! Failed to download ${URL/https/http}.zsync" exit 1 fi