fix windows build

pull/3769/head
Junegunn Choi 2 weeks ago
parent 6b68d145eb
commit 9c4df5a7c2
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -97,15 +97,15 @@ func (x *Executor) Become(stdin *os.File, environ []string, command string) {
err := cmd.Start()
if err != nil {
fmt.Fprintf(os.Stderr, "fzf (become): %s\n", err.Error())
Exit(127)
os.Exit(127)
}
err = cmd.Wait()
if err != nil {
if exitError, ok := err.(*exec.ExitError); ok {
Exit(exitError.ExitCode())
os.Exit(exitError.ExitCode())
}
}
Exit(0)
os.Exit(0)
}
func escapeArg(s string) string {

Loading…
Cancel
Save