fix: Use custom URL for installer

This commit is contained in:
Kroese 2024-05-12 19:27:53 +02:00 committed by GitHub
parent abd30b9d91
commit 076ac14e79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,6 +122,7 @@ if [ ! -s "$RDC" ]; then
POS="65627648-71021835" POS="65627648-71021835"
VERIFY="b4215a4b213ff5154db0488f92c87864" VERIFY="b4215a4b213ff5154db0488f92c87864"
LOC="$DL/release/7.0.1/42218/DSM_VirtualDSM_42218.pat" LOC="$DL/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
[[ "${URL,,}" == *"_42218.pat" ]] && LOC="$URL"
rm -f "$RD" rm -f "$RD"
rm -f "$RDC" rm -f "$RDC"
@ -212,7 +213,7 @@ PAT="/$BASE.pat"
rm -f "$PAT" rm -f "$PAT"
SIZE=0 SIZE=0
[[ "$URL" == *"DSM_VirtualDSM_69057.pat" ]] && SIZE=363837333 [[ "$URL" == *"_69057.pat" ]] && SIZE=363837333
if [[ "$URL" == "file://"* ]]; then if [[ "$URL" == "file://"* ]]; then