Skip to content

exec < /dev/tty && make an error? #636

@zzzgit

Description

@zzzgit
module.exports = {
	"hooks": {
		// "prepare-commit-msg": "echo foooooo", // it works
               "prepare-commit-msg": "exec < /dev/tty && echo foooooo", 
	}
}

With the config above in .huskyrc.js, I will get an error in console:

husky > prepare-commit-msg (node v10.11.0)
The system cannot find the path specified.
husky > prepare-commit-msg hook failed (cannot be bypassed with --no-verify due to Git specs)

What's the cause?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions