PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
483 stars 92 forks source link

Remove second declaration of temp Home variable `s_tempHome` on Unix systems #1544

Closed alerickson closed 7 months ago

alerickson commented 7 months ago

PR Summary

This PR fixes a bug due to s_tempHome being redeclared (a scenario only applicable to Unix systems). After a value was set the variable would then fall out of scope and lose the value it should have been set to. This was causing a null pointer exception during install.

PR Context

Resolves #1527

PR Checklist