Skip to content

Commit 6e86eff

Browse files
authored
fix: exclude utils/vendor
1 parent ffee2a3 commit 6e86eff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/check_permission_x.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function findExecutableFiles($dir)
3434
'admin/starter/builds',
3535
'user_guide_src/add-edit-this-page',
3636
];
37+
$excludeFolder = 'utils/vendor';
3738

3839
$executableFiles = [];
3940

@@ -53,6 +54,10 @@ function findExecutableFiles($dir)
5354
if ($fileinfo->isFile() && is_executable($fileinfo->getPathname())) {
5455
$filePath = $fileinfo->getPathname();
5556

57+
if (str_contains($filePath, $excludeFolder)) {
58+
continue;
59+
}
60+
5661
// Check allow list
5762
if (in_array($filePath, $execFileList, true)) {
5863
continue;

0 commit comments

Comments
 (0)