]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(Makefile): exclude hidden directories from shellcheck
authorBenjamin Drung <benjamin.drung@canonical.com>
Wed, 13 Aug 2025 10:15:22 +0000 (12:15 +0200)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 6 Sep 2025 10:29:59 +0000 (06:29 -0400)
`shfmt -f .` 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.

Makefile

index 11abdb56ee3ef124d62f936a3496046a336f0646..69b5bc647ec75dfa188a9edbc55f46e676078471 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -315,7 +315,7 @@ syncheck:
        done;exit $$ret
 ifeq ($(HAVE_SHELLCHECK),yes)
 ifeq ($(HAVE_SHFMT),yes)
-       shellcheck $$(shfmt -f .)
+       shellcheck $$(shfmt -f *)
 else
        find . -name '*.sh' -print0 | xargs -0 shellcheck
 endif