summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-19 22:33:16 +0800
committerGitHub <[email protected]>2019-06-19 22:33:16 +0800
commitac7333103ebc1f0b1d8c9e0cf3c97ff83c9ce8bb (patch)
tree412b2534ea311cb8656616b22efcfcf60affb9fb
parenta4d6849c8b18d32e0dd97c54b95ed49c2c3acb76 (diff)
parentf264f50f6c1ec488c1608bf69c463d57cc7ccca9 (diff)
Merge pull request #460 from OpportunityLiu/add-to-path
fix nsis add to path
-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 {