X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=JsCompile.php;h=c53bf6c6f8cd9119aa2a3df72f7a0a67c04c1920;hp=050f46af06f4f84c9cfe7cb080dc10bf5a052e03;hb=HEAD;hpb=dd3034bbc4a10459aea4079c38c181528122bfb0 diff --git a/JsCompile.php b/JsCompile.php index 050f46af..089db58d 100644 --- a/JsCompile.php +++ b/JsCompile.php @@ -255,8 +255,14 @@ class Pman_Core_JsCompile extends Pman $pg = System::which('pgrep'); + if ($pg == '') { + echo ''; + return false; + } + $cmd = "$pg roojspacker"; - $out = trim(`$cmd`); + $res = `$cmd`; + $out = empty($res) ? '' : trim($res); if (strlen($out) > 0) { echo ''; return false;