We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ff6850 commit 12a4578Copy full SHA for 12a4578
lib/mix/lib/mix/utils.ex
@@ -441,7 +441,8 @@ defmodule Mix.Utils do
441
System.find_executable("curl") ->
442
Mix.shell.cmd(~s(curl -s -S -L -o "#{out_path}" "#{path}"))
443
windows? && System.find_executable("powershell") ->
444
- command = ~s[$client = new-object System.Net.WebClient; ] <>
+ command = ~s[$ErrorActionPreference = 'Stop'; ] <>
445
+ ~s[$client = new-object System.Net.WebClient; ] <>
446
~s[$client.DownloadFile(\\"#{path}\\", \\"#{out_path}\\")]
447
Mix.shell.cmd(~s[powershell -Command "& {#{command}}"])
448
true ->
0 commit comments