changeset 28:134831d4f675

Prevent warring from find comand: mindepth/maxdepth options must first follow.
author Oleksander Gavenko <gavenko_a@3g.ua>
date Mon, 03 Mar 2008 21:10:23 +0200
parents 0ea83cb4becf
children dc247a0bfda9
files hg/hgrepsync
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hg/hgrepsync	Sun Mar 02 23:00:59 2008 +0200
+++ b/hg/hgrepsync	Mon Mar 03 21:10:23 2008 +0200
@@ -102,7 +102,7 @@
     exit 1;
 fi
 
-for dir in `find . -type d -mindepth 1 -maxdepth 1`; do
+for dir in `find . -mindepth 1 -maxdepth 1 -type d`; do
     dir=${dir##*/}
     echo $dir