obsolete: macOS 10.x is no longer supported (see also 059743bc8311);
authorwenzelm
Wed, 29 May 2024 16:16:29 +0200
changeset 80213 d13b8ee54885
parent 80212 67b5e8b88728
child 80214 d78446e2b613
obsolete: macOS 10.x is no longer supported (see also 059743bc8311);
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