mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Don't use curl on Windows
This commit is contained in:
parent
9fb22eee5f
commit
cbae042701
1 changed files with 5 additions and 1 deletions
|
@ -223,7 +223,11 @@ def download_file(
|
|||
headers: dict[str, str] | None = None,
|
||||
) -> pathlib.Path:
|
||||
ctx.info(f"Downloading {dest.name!r} @ {url} ...")
|
||||
curl = shutil.which("curl")
|
||||
if sys.platform == "win32":
|
||||
# We don't want to use curl on Windows, it doesn't work
|
||||
curl = None
|
||||
else:
|
||||
curl = shutil.which("curl")
|
||||
if curl is not None:
|
||||
command = [curl, "-sS", "-L"]
|
||||
if headers:
|
||||
|
|
Loading…
Add table
Reference in a new issue