File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,19 @@ Write-Host "Deleting Functions Core Tools if exists...."
23
23
Remove-Item - Force ./ Azure.Functions.Cli.zip - ErrorAction Ignore
24
24
Remove-Item - Recurse - Force ./ Azure.Functions.Cli - ErrorAction Ignore
25
25
26
+ if (-not (Test-Path env:CORE_TOOLS_URL))
27
+ {
28
+ $env: CORE_TOOLS_URL = " https://functionsclibuilds.blob.core.windows.net/builds/2/latest/Azure.Functions.Cli.win-x86.zip"
29
+ }
30
+
26
31
Write-Host " Downloading Functions Core Tools...."
27
32
Invoke-RestMethod - Uri ' https://functionsclibuilds.blob.core.windows.net/builds/2/latest/version.txt' - OutFile version.txt
28
33
Write-Host " Using Functions Core Tools version: $ ( Get-Content - Raw version.txt) "
29
34
Remove-Item version.txt
30
35
31
- $url = " https://functionsclibuilds.blob.core.windows.net/builds/2/latest/Azure.Functions.Cli.win-x86.zip"
32
36
$output = " $currDir \Azure.Functions.Cli.zip"
33
37
$wc = New-Object System.Net.WebClient
34
- $wc.DownloadFile ($url , $output )
38
+ $wc.DownloadFile ($env: CORE_TOOLS_URL , $output )
35
39
36
40
Write-Host " Extracting Functions Core Tools...."
37
41
Expand-Archive " .\Azure.Functions.Cli.zip" - DestinationPath " .\Azure.Functions.Cli"
You can’t perform that action at this time.
0 commit comments