Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Fix usage of find in some scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Feb 17, 2012
1 parent 77bddf7 commit 193b570
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pre-commit.posix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pre-commit.windows
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion validate.posix
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion validate.windows
Original file line number Diff line number Diff line change
@@ -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
./xcsv.exe all $dir;

Expand Down

0 comments on commit 193b570

Please sign in to comment.