mirror of
https://gitee.com/johng/gf
synced 2026-06-25 01:05:41 +08:00
修复gproc.ShellRun在windows下的执行问题
This commit is contained in:
@ -145,7 +145,7 @@ func searchBinFromEnvPath(file string) string {
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
array = strings.Split(os.Getenv("Path"), ";")
|
||||
if gfile.Ext(file) != "exe" {
|
||||
if gfile.Ext(file) != ".exe" {
|
||||
file += ".exe"
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user