mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2026-04-19 20:16:57 +00:00
mpw-make - exit on error if {exit}
This commit is contained in:
+3
-4
@@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user