From 7273699f8f3cf313f877cdb2d9f6307f3178ec33 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 27 Nov 2018 22:33:56 +0800 Subject: fix get.ps1 download failed --- scripts/get.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 27a3bfd58..5b0eae60b 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -4,7 +4,7 @@ param ( [string]$branch = "master", - [string]$version = "2.2.2" + [string]$version = "v2.2.2" ) & { @@ -47,7 +47,7 @@ try{ writeErrorTip 'Please set environment var "TMP" to another path' myExit 1 } -Write-Host "Start downloading xmake-installer v$version to $outfile .." +Write-Host "Start downloading xmake-installer $version to $outfile .." try{ Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$version/xmake-$version.exe" -OutFile "$outfile" }catch{ -- cgit v1.3.1