From 20989fab18d2b64e280cd8b98f07a8ba8b6fb7b3 Mon Sep 17 00:00:00 2001 From: lufever Date: Sat, 11 Jan 2020 16:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=98get=20istio=20version=20=20automatical?= =?UTF-8?q?ly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- getLatestIstio.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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