1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

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;