Skip to content

Commit

Permalink
n
Browse files Browse the repository at this point in the history
Change-Id: Ia532697ea429907567ab156f6f50059a15e90fbb
  • Loading branch information
qiulaidongfeng committed Apr 25, 2024
1 parent e1489ac commit be41db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ func (c *Cmd) Start() error {
}
lp := c.Path
if runtime.GOOS == "windows" {
if lp == "" {
if c.cacheLookExtensions == "" {
// If c.Path is relative, we had to wait until now
// to resolve it in case c.Dir was changed.
// (If it is absolute, we already resolved its extension in Command
Expand All @@ -665,7 +665,7 @@ func (c *Cmd) Start() error {
if err != nil {
return err
}
} else if c.cacheLookExtensions != "" {
} else {
lp = c.cacheLookExtensions
}
}
Expand Down

0 comments on commit be41db8

Please sign in to comment.