mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-28 11:31:04 -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 {
|
func (env *ShellEnvironment) RunShellCommand(shell, command string) string {
|
||||||
defer env.trace(time.Now(), "RunShellCommand", shell, command)
|
defer env.trace(time.Now(), "RunShellCommand", shell, command)
|
||||||
out, _ := env.RunCommand(shell, "-c", command)
|
if out, err := env.RunCommand(shell, "-c", command); err == nil {
|
||||||
return out
|
return out
|
||||||
|
}
|
||||||
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (env *ShellEnvironment) HasCommand(command string) bool {
|
func (env *ShellEnvironment) HasCommand(command string) bool {
|
||||||
|
|
Loading…
Reference in a new issue