Permalink
Browse files

Fix usage of `find` in some scripts.

  • Loading branch information...
1 parent 8b6e98c commit bef51309fa5bfb6e043718fbfb6b6ae636b1ac9d alexrp committed Feb 17, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 pre-commit.posix
  2. +1 −1 validate.posix
View
@@ -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
View
@@ -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;

0 comments on commit bef5130

Please sign in to comment.