diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp index d63fc3c0a5..c6168b8882 100644 --- a/Userland/Shell/Shell.cpp +++ b/Userland/Shell/Shell.cpp @@ -1036,8 +1036,7 @@ bool Shell::run_file(const String& filename, bool explicitly_invoked) } auto file = file_result.value(); auto data = file->read_all(); - run_command(data); - return true; + return run_command(data) == 0; } void Shell::restore_ios() {