return errors from build-port if automated_build set

This commit is contained in:
nakst 2021-12-15 11:40:11 +00:00
parent a28bdd4da0
commit 184c536289
1 changed files with 5 additions and 1 deletions

View File

@ -1503,11 +1503,15 @@ void DoCommand(const char *l) {
l2 = (char *) l + 11; l2 = (char *) l + 11;
} }
CallSystemF("ports/%s/port.sh", l2); int status = CallSystemF("ports/%s/port.sh", l2);
if (!alreadyNamedPort) { if (!alreadyNamedPort) {
free(l2); free(l2);
} }
if (automatedBuild) {
exit(status);
}
} else if (0 == memcmp(l, "get-source ", 11)) { } else if (0 == memcmp(l, "get-source ", 11)) {
if (CallSystem("mkdir -p bin/cache && rm -rf bin/source")) { if (CallSystem("mkdir -p bin/cache && rm -rf bin/source")) {
exit(1); exit(1);