mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
Shell: Properly detect the kill executable
This commit is contained in:
parent
cfe663435e
commit
0374351595
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'
|
// Simply translate the arguments and pass them to `kill'
|
||||||
Vector<String> replaced_values;
|
Vector<String> replaced_values;
|
||||||
auto kill_path_or_error = FileSystem::resolve_executable_from_environment("kill"sv);
|
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");
|
warnln("kill: `kill' not found in PATH");
|
||||||
return 126;
|
return 126;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue