summaryrefslogtreecommitdiff
path: root/Userland/Shell
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Shell')
-rw-r--r--Userland/Shell/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Shell/main.cpp b/Userland/Shell/main.cpp
index 3616919844..76675a2014 100644
--- a/Userland/Shell/main.cpp
+++ b/Userland/Shell/main.cpp
@@ -176,8 +176,7 @@ int main(int argc, char** argv)
if (command_to_run) {
dbgln("sh -c '{}'\n", command_to_run);
- shell->run_command(command_to_run);
- return 0;
+ return shell->run_command(command_to_run);
}
if (file_to_read_from && StringView { "-" } != file_to_read_from) {