<&sfsu hook:> hook is broken with new powershell
Closed this issue · 2 comments
Describe the bug
Invoke-Expression (&sfsu hook)
Invoke-Expression: Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Command'. Specified method is not supported.
I just updated and that's what I'm getting on pwsh load.
$PSVersionTable.PSVersion
Major Minor Patch PreReleaseLabel BuildLabel
7 4 0
Steps to To Reproduce
Setup powershell hook is $profile. Not sure how to reproduce this. Invoke-Expression (&sfsu hook)
Expected behavior
To Load as normal like it did yesterday.
Version
1.8.0, Powershell 7.4.0, Windows 11
Additional context
Worked yesterday so...?
This is caused by ebc90aa#diff-9ec516944f80af910aeed530b6f861195efe35da305d167e2ebf2eab62f183aaR45-R46, the type of &sfsu hook
is now a string array instead of a string. I used Invoke-Expression (&sfsu hook | Out-String)
instead.