Merge branch 'main' into dev
This commit is contained in:
halx99 2023-07-16 14:56:40 +08:00
parent 206ecbb703
commit 1c1989e333
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ if ($IsWin) {
}
$pathList = [System.Collections.ArrayList]$env:PATH.Split(';')
if (!$pathList.IndexOf($AX_CONSOLE_BIN) -eq -1) {
$pathList = [Environment]::GetEnvironmentVariable('PATH', 'User').Split(';')
if ($pathList.IndexOf($AX_CONSOLE_BIN) -eq -1) {
$pathList = [System.Collections.ArrayList][Environment]::GetEnvironmentVariable('PATH', 'User').Split(';')
$pathList.Insert(0, $AX_CONSOLE_BIN)
$PATH = $pathList -join ';'
[Environment]::SetEnvironmentVariable('PATH', $PATH, 'User')