summaryrefslogtreecommitdiff
path: root/scripts/get.ps1
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-19 20:30:50 +0800
committerOpportunityLiu <[email protected]>2019-06-19 20:33:26 +0800
commitfde96366546904b7e9ef8ad09fd12e64f3b3c15b (patch)
treee144ab416140961214881e28412d3339797b9eae /scripts/get.ps1
parent526556809d220564e6565fbe2c6deec723c9f343 (diff)
fix add to path
Diffstat (limited to 'scripts/get.ps1')
-rw-r--r--scripts/get.ps11
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1
index 726d74a42..21646bc7d 100644
--- a/scripts/get.ps1
+++ b/scripts/get.ps1
@@ -112,7 +112,6 @@ function xmakeInstall {
}
Write-Host 'Adding to PATH... almost done'
$env:Path += ";$installdir"
- [Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::User) + ";$installdir", [System.EnvironmentVariableTarget]::User) # this step is optional because installer writes path to regedit
try {
xmake --version
} catch {