Salome HOME
Merge bug fixes from SALOME_3_DS branch
[tools/install.git] / config_files / common.sh
index f8c08cab39794108d112257e480b88e74baa4fa6..9a69683fabf2fb474071bed5de016656f0203f52 100755 (executable)
@@ -358,7 +358,7 @@ find_in_path(){
 file=$1;  shift; 
 path=$*
 for i in `echo ${path} | sed -e"s%:% %g"` ; do 
-    ret=`find $i -name $file 2>/dev/null`
+    ret=`find $i -name $file -maxdepth 1 2>/dev/null`
     if [ -n "$ret" ] ; then
        ret=`echo $ret | sed -e"s%/\$file$%%g"`
        echo $ret