fix file discovery

This commit is contained in:
Thomas Levine 2016-03-06 10:22:15 +00:00
parent 933aa466c4
commit dc26f877b7

14
urchin
View File

@ -134,12 +134,16 @@ recurse() {
fi fi
done done
echo "${requested_path}" | grep "^${potential_test}" > /dev/null || if echo "${requested_path}" | grep "^${potential_test}" > /dev/null ||
echo "${potential_test}" | grep "^${requested_path}" > /dev/null || echo "${potential_test}" | grep "^${requested_path}" > /dev/null; then
{ test "${potential_test}" != "${requested_test}" && if test "$(dirname "${potential_test}")" = \
test -f "${potential_test}" && test -f "${requested_path}"; } || "$(dirname "${requested_path}")" &&
test "${potential_test}" != "${requested_path}"; then
return 0 return 0
echo "${requested_path}" XXX "${potential_test}" fi
else
return 0
fi
validate_strings "${potential_test}" 'Test file names' validate_strings "${potential_test}" 'Test file names'