Skip to content

Commit 95279a6

Browse files
authored
Merge pull request #94 from BrianCArnold/handle-multipart-squashfs/debian-12
Change concatting only .part2 to concat multiple parts. (up to 10)
2 parents 96d2e9e + ae65aea commit 95279a6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: root/patch

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
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

0 commit comments

Comments
 (0)