Shell: Properly detect the kill executable

This commit is contained in:
Undefine authored and Sam Atkins committed 2023-05-21 14:59:26 +01:00
1 parent cfe663435e
commit 0374351595
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}