projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix #8131 - chinese translations
[Pman.Core]
/
JsCompile.php
diff --git
a/JsCompile.php
b/JsCompile.php
index
050f46a
..
089db58
100644
(file)
--- a/
JsCompile.php
+++ b/
JsCompile.php
@@
-255,8
+255,14
@@
class Pman_Core_JsCompile extends Pman
$pg = System::which('pgrep');
$pg = System::which('pgrep');
+ if ($pg == '') {
+ echo '<!-- install pgrep -->';
+ return false;
+ }
+
$cmd = "$pg roojspacker";
$cmd = "$pg roojspacker";
- $out = trim(`$cmd`);
+ $res = `$cmd`;
+ $out = empty($res) ? '' : trim($res);
if (strlen($out) > 0) {
echo '<!-- onther process is compiling compile. -->';
return false;
if (strlen($out) > 0) {
echo '<!-- onther process is compiling compile. -->';
return false;