浏览代码

Shell: Do not bail on signaled if condition

Fixes #5119
AnotherTest 4 年之前
父节点
当前提交
37bfaf4e7c
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      Userland/Shell/AST.cpp

+ 0 - 3
Userland/Shell/AST.cpp

@@ -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)