fix(find_files): follow with unix find command (#1787)

This commit is contained in:
i3Cheese
2022-03-12 22:11:37 +07:00
committed by GitHub
parent 2d0b4a3243
commit 6b3728876f

View File

@@ -209,7 +209,7 @@ files.find_files = function(opts)
log.warn "The `no_ignore` key is not available for the `find` command in `find_files`."
end
if follow then
table.insert(find_command, "-L")
table.insert(find_command, 2, "-L")
end
if search_dirs then
table.remove(find_command, 2)