Shell: Actually return the exit code of the file when running a file

This commit is contained in:
AnotherTest 2021-01-18 04:34:57 +03:30 committed by Andreas Kling
commit 8cfda86a45
Notes: sideshowbarker 2024-07-18 23:03:59 +09:00

View file

@ -1036,8 +1036,7 @@ bool Shell::run_file(const String& filename, bool explicitly_invoked)
} }
auto file = file_result.value(); auto file = file_result.value();
auto data = file->read_all(); auto data = file->read_all();
run_command(data); return run_command(data) == 0;
return true;
} }
void Shell::restore_ios() void Shell::restore_ios()
{ {