Shell: Make run_command() return a NonnullRefPtrVector<Job>

This never returns null Job pointers.
This commit is contained in:
Andreas Kling
2020-08-06 13:44:30 +02:00
parent 3055f73d48
commit bf2cd9374c
4 changed files with 7 additions and 7 deletions

View File

@@ -734,7 +734,7 @@ int Shell::builtin_time(int argc, const char** argv)
timer.start();
for (auto& job : run_commands(commands)) {
block_on_job(job);
exit_code = job->exit_code();
exit_code = job.exit_code();
}
fprintf(stderr, "Time: %d ms\n", timer.elapsed());
return exit_code;