=Minor fix to Setup-ScriptEnv

This commit is contained in:
lksz 2021-11-01 13:21:09 -04:00
parent add64395fe
commit 0f84a2f136
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ Write-Verbose "MyPSScriptRoot = $MyPSScriptRoot"
$p2 = @($p1[0], $(Join-Path $MyPSScriptRoot base)) + $($p1 | Select-Object -Skip 1) | Select-Object -Unique
$env:PATH = $p2 -join $PathEnvDelimiter
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(
[switch]$Full