buildzip: install wps/ subfolders with a dot in their name

make install skipped every wps/ subfolder whose name has a dot in it:
the test meant for "." and ".." matched a dot anywhere. A theme named
with one lost its images.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: Ic225960349e5d73ae4defa7524fa2cee5066e920
This commit is contained in:
Marcin Bukat 2026-10-05 09:48:30 +02:00
parent 13553bda06
commit cc362a8ecd

View file

@ -222,7 +222,7 @@ sub make_install {
foreach my $_dir (@files) {
my $dir = "wps/" . $_dir;
if ( -d "$src/$dir" && $_dir !~ /\.\.?/) {
if ( -d "$src/$dir" && $_dir !~ /^\.\.?$/) {
unless (glob_mkdir("$userdir/$dir")) {
return 0;
}