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