From acc08882e93ec2b7093b5fa9c4b8c1b0536ec35e Mon Sep 17 00:00:00 2001 From: Meisterlala <6453306+Meisterlala@users.noreply.github.com> Date: Sat, 18 Oct 2025 19:58:34 +0200 Subject: [PATCH] Dont process files staring with . --- cmd/compressor/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/compressor/main.go b/cmd/compressor/main.go index 6ca08fb..33a98a9 100644 --- a/cmd/compressor/main.go +++ b/cmd/compressor/main.go @@ -206,6 +206,9 @@ func shouldProcess(cfg config, path string) bool { if !info.Mode().IsRegular() { return false } + if strings.HasPrefix(filepath.Base(path), ".") { + return false + } if strings.HasSuffix(path, cfg.processingSuffix) { return false } -- 2.51.2