mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Ports: fallback to pro when curl is not installed
This commit is contained in:
parent
f71102a474
commit
fbbb4b3395
Notes:
sideshowbarker
2024-07-18 20:28:57 +09:00
Author: https://github.com/petelliott Commit: https://github.com/SerenityOS/serenity/commit/fbbb4b33955 Pull-request: https://github.com/SerenityOS/serenity/pull/6227 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/bcoles
@ -70,7 +70,7 @@ fetch() {
|
||||
echo "URL: ${url}"
|
||||
|
||||
# FIXME: Serenity's curl port does not support https, even with openssl installed.
|
||||
if ! curl https://example.com -so /dev/null; then
|
||||
if which curl && ! curl https://example.com -so /dev/null; then
|
||||
url=$(echo "$url" | sed "s/^https:\/\//http:\/\//")
|
||||
fi
|
||||
|
||||
@ -79,7 +79,11 @@ fetch() {
|
||||
if [ -f "$filename" ]; then
|
||||
echo "$filename already exists"
|
||||
else
|
||||
run_nocd curl ${curlopts:-} "$url" -L -o "$filename"
|
||||
if which curl; then
|
||||
run_nocd curl ${curlopts:-} "$url" -L -o "$filename"
|
||||
else
|
||||
run_nocd pro "$url" > "$filename"
|
||||
fi
|
||||
fi
|
||||
|
||||
# check md5sum if given
|
||||
|
Loading…
Reference in New Issue
Block a user