$pg = System::which('pgrep');
- $cmd = "$pg roobuilder";
- $out = trim(`$cmd`);
+ if ($pg == '') {
+ echo '<!-- install pgrep -->';
+ return false;
+ }
+
+ $cmd = "$pg roojspacker";
+ $res = `$cmd`;
+ $out = empty($res) ? '' : trim($res);
if (strlen($out) > 0) {
echo '<!-- onther process is compiling compile. -->';
return false;