[readonly/geninitrd/BUSYBOX: 27/113] skip build directory in my_find() (thanks to laro)
draenog
draenog at pld-linux.org
Sat Nov 2 19:12:18 CET 2013
commit 9c9f7cdb0b900dc475a58b40a16fc1f9659cc1f4
Author: Artur Frysiak <artur at frysiak.net>
Date: Tue Mar 6 15:48:59 2001 +0000
skip build directory in my_find() (thanks to laro)
svn-id: @1179
geninitrd | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/geninitrd b/geninitrd
index e061063..c9a6d52 100755
--- a/geninitrd
+++ b/geninitrd
@@ -66,7 +66,9 @@ my_find() {
for name in `ls`
do
if [ -d $name ]; then
- (cd $name;my_find $1/$name $2)
+ if [ "$name" != "build" ]; then
+ (cd $name;my_find $1/$name $2)
+ fi
else
[ -f $name -a "$name" = "$2" ] && echo $1/$name
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/0999a53e93eedcf489380684b998ce04aaddf11c
More information about the pld-cvs-commit
mailing list