Skip to content

Commit 5b96c15

Browse files
committed
Follow redirects
1 parent 95be795 commit 5b96c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: root/patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- wget "${url}" -O "${dest}/$(basename ${url})"
88
+ /bin/curl -L "${url}" -o "${dest}/$(basename ${url})"
99
+ for partNum in $(seq 2 10); do
10-
+ if [ ! -z "$(/bin/curl -sI "${url}".part${partNum} | grep "200 OK\|302 Found" || :)" ]; then
10+
+ if [ ! -z "$(/bin/curl -sLI "${url}".part${partNum} | grep "200 OK\|302 Found" || :)" ]; then
1111
+ /bin/curl -L "${url}".part${partNum} -o ->> "${dest}/$(basename ${url})";
1212
+ else
1313
+ break

0 commit comments

Comments
 (0)