From 0f36d0629e314ddba8b45741a82a52368b2a962e Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 30 Jun 2023 14:05:54 +0800 Subject: [PATCH] move check after cached version --- JsCompile.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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); } -- 2.39.2