diff --git a/apply-patch.sh b/apply-patch.sh index c8e2ddd..3a85c28 100755 --- a/apply-patch.sh +++ b/apply-patch.sh @@ -26,7 +26,8 @@ if [ ! -d $patch_dir ];then fi cd $patch_dir -for p in `find * -links 2` +leaf_dirs=$(find . -type d -exec sh -c '(ls -p "{}" | grep / > /dev/null) || echo "{}"' \;) +for p in $leaf_dirs do echo echo "process project: $p"