summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-04-21 14:12:59 +0800
committerTitanSnow <[email protected]>2017-04-21 14:12:59 +0800
commitc1338a3ae83159bdf54d8cfe6d59ce2f4ac0dec3 (patch)
tree9c1ed6a68f6c79fecc43e7e959c8ec0dc1401fa3 /scripts
parent84bbb39981a99fafbb758f82c8e74667502b041d (diff)
use the order "GetTempPath" uses
Diffstat (limited to 'scripts')
-rw-r--r--scripts/get.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1
index 36fb966af..8f2118bdd 100644
--- a/scripts/get.ps1
+++ b/scripts/get.ps1
@@ -2,7 +2,7 @@
# usage: (in powershell)
# Invoke-Expression (Invoke-Webrequest <my location> -UseBasicParsing).Content
-$outfile=($env:TEMP,$env:TMP,'.' -ne $null)[0]+"\$pid-xmake-installer.exe"
+$outfile=($env:TMP,$env:TEMP,'.' -ne $null)[0]+"\$pid-xmake-installer.exe"
$ver='v2.1.3'
Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$ver.exe" -OutFile "$outfile" -ErrorAction Stop
Start-Process -FilePath "$outfile" -ArgumentList '/S /D=C:\xmake' -Wait -ErrorAction Stop