From: Alan Date: Tue, 11 Jul 2023 09:04:17 +0000 (+0800) Subject: fix pgrep check X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=87bd221ccdc63e0b75de7bed75a8f9c114a837b8 fix pgrep check --- diff --git a/JsCompile.php b/JsCompile.php index 050f46af..90253343 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 = trim($res); if (strlen($out) > 0) { echo ''; return false;