mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Shell: Actually return the exit code of the file when running a file
This commit is contained in:
parent
cd6e5c064b
commit
8cfda86a45
Notes:
sideshowbarker
2024-07-18 23:03:59 +09:00
Author: https://github.com/alimpfard
Commit: 8cfda86a45
Pull-request: https://github.com/SerenityOS/serenity/pull/4996
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue