RiotGames / key-conjurer

Temporary Credential Service
https://technology.riotgames.com/news/key-conjurer-our-policy-least-privilege
Apache License 2.0
167 stars 33 forks source link

Detecting PowerShell Core (6+) shells #24

Closed tynril closed 4 years ago

tynril commented 4 years ago

Newer versions of PowerShell (PowerShell Core 6, and PowerShell 7) use the pwsh.exe executable name, which wasn't recognized by getShellType(). This pull request simply checks for that other executable name.