`find .` also searches in hidden directories (like `.git` or `.pc`). The
`.pc` is used on Debian for patch tracking and should not be searched
for files.
So ignore the top-level hidden directories from shellcheck. See also
commit
7a65d1a1f372 ("fix(Makefile): exclude hidden directories from
shellcheck").
ifeq ($(HAVE_SHFMT),yes)
shellcheck $$(shfmt -f *)
else
- find . -name '*.sh' -print0 | xargs -0 shellcheck
+ find * -name '*.sh' -print0 | xargs -0 shellcheck
endif
endif