mirror of
https://github.com/Jguer/yay
synced 2024-10-31 13:42:27 +00:00
Merge pull request #190 from Morganamilo/fix#140
Abort if editor does not return 0
This commit is contained in:
commit
83a4b9a44f
1 changed files with 4 additions and 1 deletions
|
@ -307,7 +307,10 @@ func askEditPkgBuilds(pkgs []*rpc.Pkg, bases map[string][]*rpc.Pkg) error {
|
|||
if !continueTask(str, "yY") {
|
||||
editcmd := exec.Command(editor(), dir+"PKGBUILD")
|
||||
editcmd.Stdin, editcmd.Stdout, editcmd.Stderr = os.Stdin, os.Stdout, os.Stderr
|
||||
editcmd.Run()
|
||||
err := editcmd.Run()
|
||||
if err != nil {
|
||||
return fmt.Errorf("Editor did not exit successfully, Abotring: %s", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue