Make specifying PWSH_PATH
optional
This commit is contained in:
parent
68bec52a7b
commit
40ade7b471
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ $null = New-Module {
|
|||
return;
|
||||
}
|
||||
|
||||
if (Test-Path $env:PWSH_PATH) {
|
||||
if ($env:PWSH_PATH -and (Test-Path $env:PWSH_PATH)) {
|
||||
attrib "-R" "$env:PWSH_PATH\*" /S /D;
|
||||
Remove-Item -Recurse -Force $env:PWSH_PATH;
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue