mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
fix(pwsh): run command corretly in Constrained Language mode
This commit is contained in:
parent
210e9918de
commit
c5e77f8790
|
@ -35,7 +35,7 @@ New-Module -Name "oh-my-posh-core" -ScriptBlock {
|
|||
)
|
||||
|
||||
if ($ExecutionContext.SessionState.LanguageMode -eq "ConstrainedLanguage") {
|
||||
$standardOut = Invoke-Expression "& '$FileName' `$Arguments 2>&1"
|
||||
$standardOut = Invoke-Expression "& `$FileName `$Arguments 2>&1"
|
||||
$standardOut -join "`n"
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue