From: Alan Date: Fri, 30 Jun 2023 06:05:54 +0000 (+0800) Subject: move check after cached version X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=0f36d0629e314ddba8b45741a82a52368b2a962e move check after cached version --- diff --git a/JsCompile.php b/JsCompile.php index 71d6ba72..4b10168a 100644 --- a/JsCompile.php +++ b/JsCompile.php @@ -230,17 +230,8 @@ class Pman_Core_JsCompile extends Pman // if packer is running, then dont compile - just output onebyone... - require_once 'System.php'; - $pg = System::which('pgrep'); - $cmd = "$pg roobuilder"; - $out = trim(`$cmd`); - if (strlen($out) > 0) { - return false; - } - - - + require_once 'System.php'; $packer = System::which('roojspacker'); @@ -261,6 +252,17 @@ class Pman_Core_JsCompile extends Pman return true; } + + + $pg = System::which('pgrep'); + $cmd = "$pg roobuilder"; + $out = trim(`$cmd`); + if (strlen($out) > 0) { + echo ''; + return false; + } + + if (file_exists($output)) { unlink($output); }