From 0374351595a487997239ef29825232f63d67cbe2 Mon Sep 17 00:00:00 2001 From: Undefine Date: Sun, 21 May 2023 15:48:11 +0200 Subject: [PATCH] Shell: Properly detect the kill executable --- Userland/Shell/Builtin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp index 515f7b9e61..3d9a54cd3c 100644 --- a/Userland/Shell/Builtin.cpp +++ b/Userland/Shell/Builtin.cpp @@ -1253,7 +1253,7 @@ ErrorOr Shell::builtin_kill(Main::Arguments arguments) // Simply translate the arguments and pass them to `kill' Vector 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; }