diff --git a/src/SPC/builder/linux/SystemUtil.php b/src/SPC/builder/linux/SystemUtil.php index 0d808f9d..443f3ce7 100644 --- a/src/SPC/builder/linux/SystemUtil.php +++ b/src/SPC/builder/linux/SystemUtil.php @@ -251,7 +251,7 @@ class SystemUtil foreach ($objects as $obj) { $located = null; foreach ($paths as $base) { - $output = shell_exec("find {$base} -name {$obj} -print -quit 2>/dev/null"); + $output = shell_exec("find {$base} -name {$obj} 2>/dev/null | grep -v '/32/' | head -n 1"); $line = trim((string) $output); if ($line !== '') { $located = $line;