Shell: Do not bail on signaled if condition

Fixes #5119
This commit is contained in:
AnotherTest 2021-01-26 08:59:18 +03:30 committed by Andreas Kling
parent 645657865d
commit 37bfaf4e7c

View file

@ -1619,9 +1619,6 @@ RefPtr<Value> IfCond::run(RefPtr<Shell> shell)
auto cond_job = cond_job_value->job();
shell->block_on_job(cond_job);
if (cond_job->signaled())
return create<ListValue>({}); // Exit early.
}
if (shell->last_return_code == 0) {
if (m_true_branch)