From 5e1c8e4acbb56de06bb22a16976d9a35091e01d3 Mon Sep 17 00:00:00 2001 From: Antony Messerli Date: Thu, 6 Mar 2025 00:19:52 -0600 Subject: [PATCH] Update var --- root/patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/patch b/root/patch index c0e93da..a140d6e 100644 --- a/root/patch +++ b/root/patch @@ -6,7 +6,7 @@ log_begin_msg "Trying wget ${url} -O ${dest}/$(basename ${url})" - wget "${url}" -O "${dest}/$(basename ${url})" + /bin/curl -L "${url}" -o "${dest}/$(basename ${url})" -+ for n in $(seq 2 10); do ++ for partNum in $(seq 2 10); do + if [ ! -z "$(/bin/curl -sI "${url}.part${partNum}" | grep "200 OK\|302 Found" || :)" ]; then + /bin/curl -L "${url}.part${partNum}" -o ->> "${dest}/$(basename ${url})"; + else