diff --git a/hooks/syntaxchecker/php/check.sh b/hooks/syntaxchecker/php.sh similarity index 100% rename from hooks/syntaxchecker/php/check.sh rename to hooks/syntaxchecker/php.sh diff --git a/hooks/syntaxchecker/pre-commit b/hooks/syntaxchecker/pre-commit index dbe4c94..2cd3e19 100755 --- a/hooks/syntaxchecker/pre-commit +++ b/hooks/syntaxchecker/pre-commit @@ -9,9 +9,9 @@ fi for FILE in `git diff-index --cached --name-status $against -- | cut --characters=3-`; do if [ -f $FILE ] then - if [ -f $GIT_DIR/hooks/syntaxchecker/${FILE##*.}/check.sh ] + if [ -f $GIT_DIR/hooks/syntaxchecker/${FILE##*.}.sh ] then - source $GIT_DIR/hooks/syntaxchecker/${FILE##*.}/check.sh + source $GIT_DIR/hooks/syntaxchecker/${FILE##*.}.sh fi fi done