gsudo
gsudo copied to clipboard
Issue: `Invoke-Gsudo` shows no output during execution
Issue Description
gsudo $ScriptBlock shows output during execution, Invoke-Gsudo -ScriptBlock $ScriptBlock -NoProfile does not.
Steps to Reproduce
- Have some
$ScriptBlockthat uses$InformationAction = 'Continue'withWrite-Information -MessageData 'Some info'inside it. - Notice
gsudo $ScriptBlockshows output during execution. Neat. - Notice
Invoke-Gsudo -ScriptBlock $ScriptBlock -NoProfileshows no output during execution. Dang.- Not that my command finally finished, all the output was shown.
Context:
- Windows version: Windows 11, 23H2, en-US, 22631.3880
- gsudo version: 2.5.1