diff --git a/pre-commit.posix b/pre-commit.posix index a64b984d..a35c2832 100755 --- a/pre-commit.posix +++ b/pre-commit.posix @@ -9,7 +9,7 @@ run_validator() fi; } -for dir in `find . -type d -maxdepth 1 | grep -v "\.$" | grep -v "\./\." | sed "s/^\.\///"`; do +for dir in `find . -maxdepth 1 -type d | grep -v "\.$" | grep -v "\./\." | sed "s/^\.\///"`; do build_done="false" for file in `git diff --cached --name-only | grep "^$dir\/"`; do diff --git a/validate.posix b/validate.posix index b0583491..af9d57d3 100755 --- a/validate.posix +++ b/validate.posix @@ -1,6 +1,6 @@ #!/bin/sh -for dir in `find . -type d -maxdepth 1 | grep -v "\.$" | grep -v "\./\." | sed "s/^\.\///"`; do +for dir in `find . -maxdepth 1 -type d | grep -v "\.$" | grep -v "\./\." | sed "s/^\.\///"`; do if ! [ -f $dir/Makefile ]; then mono --debug xcsv.exe all $dir mdtool-build;