소스 검색

just find file

ruki 2 년 전
부모
커밋
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
 }