This commit is contained in:
Laurent Destailleur 2021-10-23 19:08:00 +02:00
parent 25a2f3f15f
commit fc4c6d2b03

View File

@ -1542,7 +1542,8 @@ if ($dirins && $action == 'generatepackage') {
if (!dol_is_dir($dirofmodule)) {
dol_mkdir($dirofmodule);
}
$result = dol_compress_dir($dir, $outputfilezip, 'zip', '', $modulelowercase);
// Note: We exclude /bin/ to not include the already generated zip
$result = dol_compress_dir($dir, $outputfilezip, 'zip', '/\/bin\//', $modulelowercase);
} else {
$result = -1;
}