mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
parent
3a4e21c36d
commit
f00f5f9cf7
|
@ -270,6 +270,9 @@ func (env *environment) getRuntimeGOOS() string {
|
|||
}
|
||||
|
||||
func (env *environment) runCommand(command string, args ...string) (string, error) {
|
||||
if env.getRuntimeGOOS() == windowsPlatform && !strings.HasSuffix(command, ".exe") {
|
||||
command += ".exe"
|
||||
}
|
||||
defer env.trace(time.Now(), "runCommand", append([]string{command}, args...)...)
|
||||
if cmd, ok := env.cmdCache.get(command); ok {
|
||||
command = cmd
|
||||
|
|
Loading…
Reference in a new issue