mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00: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: 0374351595
Pull-request: https://github.com/SerenityOS/serenity/pull/18958
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue