Browse Source

Shell: Do not bail on signaled if condition

Fixes #5119
AnotherTest 4 years ago
parent
commit
37bfaf4e7c
1 changed files with 0 additions and 3 deletions
  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)