make: sorting found files makes more sense

This commit is contained in:
Franco Fichtner
2026-10-03 07:38:15 +02:00
parent 6cedecf83c
commit 6c03b3170d
+1 -1
View File
@@ -158,7 +158,7 @@ checkout:
vim:
.for DIR in ${.CURDIR}/src
.if exists(${DIR})
@FOUND="$$(find ${.CURDIR}/src -type f -iname "*$$(basename '${vim_ARG}')*")"; \
@FOUND="$$(find -s ${.CURDIR}/src -type f -iname "*$$(basename '${vim_ARG}')*")"; \
if [ -n "$${FOUND}" -a "$$(dirname '${vim_ARG}')" != "." ]; then \
FOUND="$$(echo "$${FOUND}" | grep -iF "$$(dirname '${vim_ARG}')")"; \
fi; \