zodiac
zodiac copied to clipboard
Skip hidden directories
Prevent zodiac from parsing and copying hidden directories like .git and .zod
Could you update your PR to replace line 14 with .*
and removing the changes you made to find_cmd.awk?
Mmm... but that would not prevent zodiac from copying hidden directories and their content to the target dir.
Did you try it? I just did using the example/site in the repo and it works for me.
EDIT:
Yes, I tried it and any hidden directory with some files in it get copied.
Adding *.
to the [ignore] section in the config file doesn't solve the problem because find ! -name
matches to the base name of the file which is the file path without the leading directories.
The simplest solution is to add a hard-coded expression in find_cmd.awk to skip everything that starts with a dot.
This would be very handy to ignore every .*
for me. I could use it to make a .site
dir a bit like jekyll _site
. The .site
would be my a repository pointing to username.github.io
.
But the solution you provided in your example is also great and is the one I use for now.
By the way, I must really thank you for providing all the feature from jekyll with the minimal approach of a set of bash and awk scripts. Unfortunately, I can only set one star.