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