mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 13:57:26 -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") {
|
if ($ExecutionContext.SessionState.LanguageMode -eq "ConstrainedLanguage") {
|
||||||
$standardOut = Invoke-Expression "& '$FileName' `$Arguments 2>&1"
|
$standardOut = Invoke-Expression "& `$FileName `$Arguments 2>&1"
|
||||||
$standardOut -join "`n"
|
$standardOut -join "`n"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue