-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executable file not found #237
Comments
Most probably command is run in Windows shell (cmd?) but your syntax is for Unix sh-compatible ones. Try to wrap your command into shell like this: run: bash -c "if grep -c 'password' {staged_files}; then exit 1; fi" Haven't worked in Windows for years, so can't really suggest a specific solution. Or try to move commands to scripts. |
I thought the same but run command of |
I'm getting this error more when I try to run with GitHub Desktop. I think it's a GitHub Desktop problem in those cases but interested in others opinion: desktop/desktop#13052 |
Oh, yes, GUI tools have problems with |
@Envek can you pass |
FYI
Does not work. It throws
|
Lefthook on Windows is not supposed to use |
Trying to run this simple command on Windows but getting the error
exec: "if": executable file not found in %PATH%
The text was updated successfully, but these errors were encountered: