2
0
ruki 2 жил өмнө
parent
commit
37e1b056f6
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      configure

+ 3 - 3
configure

@@ -236,12 +236,12 @@ _os_find() {
     local depth="${3}"
     if test_nz "${depth}"; then
         if is_host "macosx"; then
-            _ret=$(find "${dir}" -depth "${depth}" -name "${name}")
+            _ret=$(find "${dir}" -type f -depth "${depth}" -name "${name}")
         else
-            _ret=$(find "${dir}" -maxdepth "${depth}" -mindepth "${depth}" -name "${name}")
+            _ret=$(find "${dir}" -type f -maxdepth "${depth}" -mindepth "${depth}" -name "${name}")
         fi
     else
-        _ret=$(find "${dir}" -name "${name}")
+        _ret=$(find "${dir}" -type f -name "${name}")
     fi
 }