mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2026-08-24 10:14:12 -05:00
fix(pwsh): run command corretly in Constrained Language mode
This commit is contained in:
committed by
Jan De Dobbeleer
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user