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