summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-12-16 19:02:18 +0000
committerAndreas Kling <kling@serenityos.org>2020-12-16 23:26:19 +0100
commit3d7b8de64f98599856bda39bd9a00521dbccee16 (patch)
treebf831f8a9e95c9a2183c8d0a5c592e66c52fb2de
parent5eacf62ba30e7961ae66294fbeb8ec49dc035fbb (diff)
downloadserenity-3d7b8de64f98599856bda39bd9a00521dbccee16.zip
Shell: Don't run commands with failing redirections
Fixes #3423.
-rw-r--r--Shell/Shell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp
index 354943ddde..605b27bcf3 100644
--- a/Shell/Shell.cpp
+++ b/Shell/Shell.cpp
@@ -606,7 +606,7 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
if (rewiring_result.is_error()) {
if (!rewiring_result.error().is_empty())
fprintf(stderr, "error: %s\n", rewiring_result.error().characters());
- return IterationDecision::Continue;
+ return IterationDecision::Break;
}
auto& rewiring = rewiring_result.value();