Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12bf08c

Browse files
[build] Fix PATH setting in build.ps1
1 parent 1ebd4cb commit 12bf08c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build/build.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@ if (!(Test-Path $InstallPath)) {
5858
$ScriptPath = Join-Path $InstallPath 'dotnet-install.ps1'
5959
(New-Object System.Net.WebClient).DownloadFile($DotNetInstallerUri, $ScriptPath);
6060
& $ScriptPath -JSonFile $GlobalJsonPath -InstallDir $InstallPath;
61-
62-
Remove-PathVariable "$InstallPath"
63-
$env:PATH = "$InstallPath;$env:PATH"
6461
}
6562

63+
Remove-PathVariable "$InstallPath"
64+
$env:PATH = "$InstallPath;$env:PATH"
6665
$env:DOTNET_ROOT=$InstallPath
6766

6867
###########################################################################

0 commit comments

Comments
 (0)