# HG changeset patch # User wenzelm # Date 1716992189 -7200 # Node ID d13b8ee54885e3ea6f170b0d6dbcb2e31e34718e # Parent 67b5e8b887285086b6adfe7fd701d812348706e7 obsolete: macOS 10.x is no longer supported (see also 059743bc8311); diff -r 67b5e8b88728 -r d13b8ee54885 lib/scripts/download_file --- a/lib/scripts/download_file Wed May 29 16:08:17 2024 +0200 +++ b/lib/scripts/download_file Wed May 29 16:16:29 2024 +0200 @@ -16,20 +16,10 @@ return 2 } - local CURL_OPTIONS="--fail --silent --location" - if [ "$(uname -s)" = "Darwin" ] - then - case $(sw_vers -productVersion) in - 10.*) - CURL_OPTIONS="$CURL_OPTIONS --insecure" - ;; - esac - fi - echo "Getting \"$REMOTE\"" mkdir -p "$(dirname "$LOCAL")" - if curl $CURL_OPTIONS "$REMOTE" > "${LOCAL}.part" + if curl --fail --silent --location "$REMOTE" > "${LOCAL}.part" then mv -f "${LOCAL}.part" "$LOCAL" else