mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
Shell: Properly detect the kill executable
This commit is contained in:
parent
cfe663435e
commit
0374351595
Notes:
sideshowbarker
2024-07-16 23:23:26 +09:00
Author: https://github.com/cqundefine Commit: https://github.com/SerenityOS/serenity/commit/0374351595 Pull-request: https://github.com/SerenityOS/serenity/pull/18958
@ -1253,7 +1253,7 @@ ErrorOr<int> Shell::builtin_kill(Main::Arguments arguments)
|
||||
// Simply translate the arguments and pass them to `kill'
|
||||
Vector<String> replaced_values;
|
||||
auto kill_path_or_error = FileSystem::resolve_executable_from_environment("kill"sv);
|
||||
if (!kill_path_or_error.is_error()) {
|
||||
if (kill_path_or_error.is_error()) {
|
||||
warnln("kill: `kill' not found in PATH");
|
||||
return 126;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user