diff options
| author | TitanSnow <[email protected]> | 2017-04-20 11:18:19 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-04-20 11:18:19 +0800 |
| commit | e15f9f9877ccca28979d66aaec08a8ab36da6f9f (patch) | |
| tree | ffef98892582bccc5f8b7d7bc082759735bc063a | |
| parent | d3f5159dfff47f11de5ada31bf6891afad5e0db0 (diff) | |
avoid temp path into global path var
| -rw-r--r-- | scripts/get.ps1 | 2 |
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 |
