diff --git a/getLatestIstio.ps1 b/getLatestIstio.ps1 index ed54c7e..420ac43 100644 --- a/getLatestIstio.ps1 +++ b/getLatestIstio.ps1 @@ -1,10 +1,10 @@ param( - [string] $IstioVersion = "1.0.3" + [string] $IstioVersion = $(Invoke-RestMethod "https://api.github.com/repos/istio/istio/releases")[0].tag_name ) $url = "https://github.com/istio/istio/releases/download/$($IstioVersion)/istio-$($IstioVersion)-win.zip" $Path = Get-Location -$output = [IO.Path]::Combine($Path, "istio-$($IstioVersion)-win.zip¡±) +$output = [IO.Path]::Combine($Path, "istio-$($IstioVersion)-win.zip") Write-Host "Downloading Istio from $url to path " $Path -ForegroundColor Green