File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
--- 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 @@
4
4
5
5
*)
6
6
log_begin_msg "Trying wget ${url} -O ${dest}/$(basename ${url})"
7
7
- wget "${url}" -O "${dest}/$(basename ${url})"
8
8
+ /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
11
14
+ fi
15
+ + done
12
16
;;
13
17
esac
14
18
else
You can’t perform that action at this time.
0 commit comments