2
2
镜像来自 https://github.com/Hilbis/Hilbish synced 2025-07-03 17:52:02 +00:00

feat: add command.not-executable hook (closes #119)

This commit is contained in:
TorchedSammy 2022-03-16 19:45:55 -04:00
父節點 20a4cdb505
當前提交 8b5dc69950
簽署人: sammyette
GPG Key ID: 904FC49417B44DCD

查看文件

@ -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])