mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-15 13:17:53 -08:00
parent
8c8f3e411d
commit
e62482c56f
|
@ -429,8 +429,10 @@ 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)
|
||||
out, _ := env.RunCommand(shell, "-c", command)
|
||||
return out
|
||||
if out, err := env.RunCommand(shell, "-c", command); err == nil {
|
||||
return out
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (env *ShellEnvironment) HasCommand(command string) bool {
|
||||
|
|
Loading…
Reference in a new issue