allysonsilva / php-pre-commit

:octocat: Git pre-commit hook designed for any PHP projects
MIT License
43 stars 26 forks source link

Syntax error: "(" unexpected` #1

Closed freezable closed 4 years ago

freezable commented 5 years ago
  1. make code changes
  2. add files to git (git add)
  3. make commit (git commit -m 'test')

result: Error message: .git/hooks/pre-commit: 128: .git/hooks/pre-commit: Syntax error: "(" unexpected

paseto commented 5 years ago

Replace #!/bin/sh To #!/bin/bash

Nayunis commented 1 year ago

Hi paseto, thanks for your answer. Would you be able to clarify where this needs to be replaced and why? I have the same problem as freezable, but couldn't figure out where i need to put the #!bin/bash

thanks!