Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #179 from JuliaPackaging/stevengj-patch-1
Browse files Browse the repository at this point in the history
default to /usr/bin/curl on macOS
  • Loading branch information
stevengj authored Sep 9, 2019
2 parents 6779f54 + 8dac81f commit 0af0cdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PlatformEngines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ function probe_platform_engines!(;verbose::Bool = false)
(`fetch --help`, (url, path) -> `fetch --user-agent=$agent -f $path $url`),
(`busybox wget --help`, (url, path) -> `busybox wget -U $agent -c -O $path $url`),
]
Sys.isapple() && pushfirst!(download_engines, (`/usr/bin/curl --help`, (url, path) -> `/usr/bin/curl -H "User-Agent: $agent" -C - -\# -f -o $path -L $url`))

# 7z is rather intensely verbose. We also want to try running not only
# `7z` but also a direct path to the `7z.exe` bundled with Julia on
Expand Down

0 comments on commit 0af0cdb

Please sign in to comment.