Skip to content

Commit

Permalink
do not create subfolders in a hook folder
Browse files Browse the repository at this point in the history
It confuses the configure.sh script
  • Loading branch information
greg0ire committed Sep 3, 2014
1 parent 7af02ca commit 0919649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions hooks/syntaxchecker/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0919649

Please sign in to comment.