mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
revert(windows): force the use of .exe
This reverts commit f00f5f9cf7
.
Resolves #1387
This commit is contained in:
parent
75eb09e6dc
commit
4294351e6f
|
@ -270,9 +270,6 @@ 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