mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
Shell: Do not treat the absence of an init script as an error
This commit is contained in:
parent
e83c36d053
commit
6d17fe38a4
Notes:
sideshowbarker
2024-07-19 05:07:11 +09:00
Author: https://github.com/alimpfard
Commit: 6d17fe38a4
Pull-request: https://github.com/SerenityOS/serenity/pull/2705
3 changed files with 6 additions and 5 deletions
|
@ -146,8 +146,8 @@ int main(int argc, char** argv)
|
|||
String file_path = Shell::init_file_path;
|
||||
if (file_path.starts_with('~'))
|
||||
file_path = shell->expand_tilde(file_path);
|
||||
if (!shell->run_file(file_path)) {
|
||||
fprintf(stderr, "Shell: Failed to execute init file '%s'\n", Shell::init_file_path);
|
||||
if (Core::File::exists(file_path)) {
|
||||
shell->run_file(file_path, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue