summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-04-20 11:18:19 +0800
committerTitanSnow <[email protected]>2017-04-20 11:18:19 +0800
commite15f9f9877ccca28979d66aaec08a8ab36da6f9f (patch)
treeffef98892582bccc5f8b7d7bc082759735bc063a /scripts
parentd3f5159dfff47f11de5ada31bf6891afad5e0db0 (diff)
avoid temp path into global path var
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 9ffa15dd2..43e834f24 100644
--- a/scripts/get.ps1
+++ b/scripts/get.ps1
@@ -7,5 +7,5 @@ Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$
Start-Process -FilePath "$pid-xmake-installer.exe" -ArgumentList '/S /D=C:\xmake' -Wait
Remove-Item "$pid-xmake-installer.exe"
$env:Path+=";C:\xmake"
-[Environment]::SetEnvironmentVariable("Path",$env:Path,[System.EnvironmentVariableTarget]::User)
+[Environment]::SetEnvironmentVariable("Path",[Environment]::GetEnvironmentVariable("Path",[System.EnvironmentVariableTarget]::User)+";C:\xmake",[System.EnvironmentVariableTarget]::User)
xmake --version