mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
0bdad6fa95
commit
69ac542b42
|
@ -504,7 +504,7 @@ func (env *ShellEnvironment) RunCommand(command string, args ...string) (string,
|
|||
}
|
||||
|
||||
func (env *ShellEnvironment) RunShellCommand(shell, command string) string {
|
||||
defer env.Trace(time.Now(), "RunShellCommand", shell, command)
|
||||
defer env.Trace(time.Now(), "RunShellCommand")
|
||||
if out, err := env.RunCommand(shell, "-c", command); err == nil {
|
||||
return out
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue