I create a cookbook for copying some folders to others. In template, I wrote linux commands like:
cp -r [some path] [some path]
cp -r [some path] [some path]
cp -r [some path] [some path]
...
But the last command copy files with specific extension .html. So I wrote command like this:
cp [some path]/*.html [some path]
Everything works fine but I have to wrote some if statement to the last command because there are cases, when there are no html files in this directory. How to write it in my template?