File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -500,15 +500,17 @@ defmodule Mix.Utils do
500
500
File . rm ( out_path )
501
501
502
502
status = cond do
503
- System . find_executable ( "wget" ) ->
504
- Mix . shell . cmd ( ~s( wget -nv -O "#{ out_path } " "#{ path } ") )
505
- System . find_executable ( "curl" ) ->
506
- Mix . shell . cmd ( ~s( curl -s -S -L -o "#{ out_path } " "#{ path } ") )
507
503
windows? && System . find_executable ( "powershell" ) ->
508
504
command = ~s[ $ErrorActionPreference = 'Stop'; ] <>
509
505
~s[ $client = new-object System.Net.WebClient; ] <>
510
506
~s[ $client.DownloadFile(\\ "#{ path } \\ ", \\ "#{ out_path } \\ ")]
511
507
Mix . shell . cmd ( ~s[ powershell -Command "& {#{ command } }"] )
508
+ System . find_executable ( "wget" ) ->
509
+ Mix . shell . cmd ( ~s( wget -nv -O "#{ out_path } " "#{ path } ") )
510
+ System . find_executable ( "curl" ) ->
511
+ Mix . shell . cmd ( ~s( curl -s -S -L -o "#{ out_path } " "#{ path } ") )
512
+ windows? ->
513
+ Mix . shell . error "powershell, wget or curl not installed"
512
514
true ->
513
515
Mix . shell . error "wget or curl not installed"
514
516
1
You can’t perform that action at this time.
0 commit comments