From 8b5dc6995017cd530cb64c0d80873c54a9ee5235 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Wed, 16 Mar 2022 19:45:55 -0400 Subject: [PATCH] feat: add command.not-executable hook (closes #119) --- exec.go | 1 + 1 file changed, 1 insertion(+) diff --git a/exec.go b/exec.go index aae0b4d..cb24b08 100644 --- a/exec.go +++ b/exec.go @@ -142,6 +142,7 @@ func execCommand(cmd, old string) error { err := lookpath(args[0]) if err == errNotExec { hooks.Em.Emit("command.no-perm", args[0]) + hooks.Em.Emit("command.not-executable", args[0]) return interp.NewExitStatus(126) } else if err != nil { hooks.Em.Emit("command.not-found", args[0])