mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-29 11:10:48 +00:00
New option to work with one or more hex.pm mirrors (#197)
* New option to work with one or more hex.pm mirrors Add a new option called `hexpm-mirrors` for one or more hex.pm mirrors. Default list is `builds.hex.pm`, so behavior is unaffected unless option is used. Signed-off-by: Paul Guyot <pguyot@kallisys.net> * Implement suggested rewording changes from @paulo-ferraz-oliveira Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com> Signed-off-by: Paul Guyot <pguyot@kallisys.net> --------- Signed-off-by: Paul Guyot <pguyot@kallisys.net> Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
This commit is contained in:
co-authored by
Paulo F. Oliveira
parent
9641cb96c1
commit
cf692c3264
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
param([Parameter(Mandatory=$true)][string]${VSN})
|
||||
param([Parameter(Mandatory=$true)][string]${VSN}, [Parameter(Mandatory=$true)][string]${HEX_MIRROR})
|
||||
|
||||
$ErrorActionPreference="Stop"
|
||||
|
||||
@@ -9,7 +9,7 @@ $FILE_OUTPUT="elixir.zip"
|
||||
$DIR_FOR_BIN=".setup-beam/elixir"
|
||||
|
||||
$ProgressPreference="SilentlyContinue"
|
||||
Invoke-WebRequest "https://builds.hex.pm/builds/elixir/${FILE_INPUT}" -OutFile "${FILE_OUTPUT}"
|
||||
Invoke-WebRequest "${HEX_MIRROR}/builds/elixir/${FILE_INPUT}" -OutFile "${FILE_OUTPUT}"
|
||||
$ProgressPreference="Continue"
|
||||
New-Item "${DIR_FOR_BIN}" -ItemType Directory | Out-Null
|
||||
$ProgressPreference="SilentlyContinue"
|
||||
|
||||
Reference in New Issue
Block a user