]> source.dussan.org Git - nextcloud-server.git/commitdiff
Avoid PHP errors in the checkers drone step 31309/head
authorCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 21 Feb 2022 17:21:38 +0000 (18:21 +0100)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 21 Feb 2022 17:21:38 +0000 (18:21 +0100)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
build/triple-dot-checker.php

index fa5edfcd5ee758deee0ddd9522546a480bb4d613..15985a0a95c4d245d586cada59ef828e086ec574 100644 (file)
@@ -32,7 +32,7 @@ foreach ($directories as $dir) {
        $it = new \RecursiveDirectoryIterator($dir);
 
        foreach (new RecursiveIteratorIterator($it) as $file) {
-               if ($file->getExtension() === 'map') {
+               if (($file->getExtension() === 'map') || $file->isDir()) {
                        continue;
                }
                $content = file_get_contents($file->getPathname());