Browse Source

just find file

ruki 2 năm trước cách đây
mục cha
commit
37e1b056f6
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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
 }