Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
win_chocolatey: Fix error when choco.exe not found #53115
This fixes an issue where Get-Command would return $null, but we access the Path property anyway and PowerShell accepts it as if everything is possible. Sigh.
This relates to #47821 but does not fix it. We still do not know why the newly installed choco.exe was not found. (Possibly because it was not correctly installed, it was removed or it requires a reboot ?)
At least we now get a proper error indication.