File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11--- 9990-mount-http.sh 2019-06-14 09:55:07.000000000 +0000
2- +++ 9990-mount-http.sh.new 2019-11-15 08:38:03.225447344 +0000
3- @@ -41,7 +41,10 @@
2+ +++ 9990-mount-http.sh.new 2025-03-04 16:22:09.000000000 +0000
3+ @@ -41,7 +41,14 @@
44
55 *)
66 log_begin_msg "Trying wget ${url} -O ${dest}/$(basename ${url})"
77- wget "${url}" -O "${dest}/$(basename ${url})"
88+ /bin/curl -L "${url}" -o "${dest}/$(basename ${url})"
9- + if [ ! -z "$(/bin/curl -sI "${url}".part2 | grep "200 OK\|302 Found" || :)" ]; then
10- + /bin/curl -L "${url}".part2 -o ->> "${dest}/$(basename ${url})"
9+ + for n in $(seq 2 10); do
10+ + if [ ! -z "$(/bin/curl -sI "${url}.part${partNum}" | grep "200 OK\|302 Found" || :)" ]; then
11+ + /bin/curl -L "${url}.part${partNum}" -o ->> "${dest}/$(basename ${url})";
12+ + else
13+ + break
1114+ fi
15+ + done
1216 ;;
1317 esac
1418 else
You can’t perform that action at this time.
0 commit comments