OXDEV-3559 Fix parsing dot files

This commit is contained in:
Florian Engelhardt 2020-07-29 10:45:42 +02:00
parent 5219685987
commit cbcd2c8db5
No known key found for this signature in database
GPG Key ID: 39B8DAD75A95B500

View File

@ -93,7 +93,7 @@ class Installer
$jobRename = function (\SplFileInfo $file) use ($vendor, $package, $packageFull): void {
$fileName = $file->getFilename();
$filePath = (string) $file;
if ($file->isDir() || strpos($fileName, '.') === 0 || ! is_writable($filePath)) {
if ($file->isDir() || !is_writable($filePath)) {
return;
}
$contents = file_get_contents($filePath);