mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2025-02-13 09:30:57 +00:00
mpw-make - exit on error if {exit}
This commit is contained in:
parent
76d5c9a474
commit
a366bbf2cb
@ -371,11 +371,10 @@ int make(int argc, char **argv) {
|
||||
ptr->execute(e, fds);
|
||||
} catch (execution_of_input_terminated &ex) {
|
||||
control_c = 0;
|
||||
if (!(ptr->terminal() && ++iter == v.end())) {
|
||||
fprintf(stderr, "%s\n", ex.what());
|
||||
}
|
||||
fprintf(stderr, "%s\n", ex.what());
|
||||
if (e.exit())
|
||||
exit(ex.status());
|
||||
e.status(ex.status(), false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user