Skip to content

Commit 56514c3

Browse files
committed
Fix: exec file path error
1 parent 4389387 commit 56514c3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

console/console_windows.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ func (c *console) buildCmd(args []string) (string, error) {
8787
return "", ErrInvalidCmd
8888
}
8989
var cmds = fmt.Sprintf("cmd /C chcp %s > nul & ", codePage(c.coder))
90-
if file, err := exec.LookPath(args[0]); err != nil {
91-
return "", err
92-
} else if args[0], err = filepath.Abs(file); err != nil {
93-
return "", err
94-
}
9590
for _, v := range args {
9691
cmds += v + ` `
9792
}

0 commit comments

Comments
 (0)