mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 09:25:35 +08:00
Use zig toolchain by default, lint files
This commit is contained in:
@@ -28,7 +28,12 @@ class PkgConfigUtil
|
||||
];
|
||||
$found = null;
|
||||
foreach ($find_list as $file) {
|
||||
if (file_exists($file) && is_executable($file)) {
|
||||
$exists = file_exists($file);
|
||||
$executable = is_executable($file);
|
||||
if (!$exists) {
|
||||
continue;
|
||||
}
|
||||
if (!$executable && chmod($file, 0755) || $executable) {
|
||||
$found = $file;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user