=Minor fix to Setup-ScriptEnv
This commit is contained in:
parent
add64395fe
commit
0f84a2f136
|
@ -354,7 +354,7 @@ Write-Verbose "MyPSScriptRoot = $MyPSScriptRoot"
|
||||||
$p2 = @($p1[0], $(Join-Path $MyPSScriptRoot base)) + $($p1 | Select-Object -Skip 1) | Select-Object -Unique
|
$p2 = @($p1[0], $(Join-Path $MyPSScriptRoot base)) + $($p1 | Select-Object -Skip 1) | Select-Object -Unique
|
||||||
$env:PATH = $p2 -join $PathEnvDelimiter
|
$env:PATH = $p2 -join $PathEnvDelimiter
|
||||||
Write-Verbose "PATH $(if( $p1.Count -eq $p2.Count ) { "modification" } else { "was modified"} )"
|
Write-Verbose "PATH $(if( $p1.Count -eq $p2.Count ) { "modification" } else { "was modified"} )"
|
||||||
Remove-Variable -Name "p1","p2","My_PSScriptRoot"
|
Remove-Variable -Name "p1","p2","My_PSScriptRoot" -Confirm:$false
|
||||||
}
|
}
|
||||||
function ProfileCode_cleanup { [CmdletBinding()]param(
|
function ProfileCode_cleanup { [CmdletBinding()]param(
|
||||||
[switch]$Full
|
[switch]$Full
|
||||||
|
|
Loading…
Reference in New Issue