Ignore:
Timestamp:
03/18/18 07:28:17 (19 months ago)
Author:
gogo
Message:

Fix compressor error detection, more release cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contrib/compress_yui.php

    r1333 r1429  
    9393 
    9494        passthru("echo \"".(preg_match('/XinhaCore.js$/',$file) ? $file_prefix.$core_prefix : $prefix)."\" > $file && java -jar {$xinha_root}/contrib/yuicompressor-2.4.2.jar  --charset UTF-8 ${file}_uncompr${ext} >> $file 2>&1"); 
    95         if (preg_match('/\d+:\d+:syntax error/',file_get_contents($file)) || preg_match('/sh: java: command not found/', file_get_contents($file))) 
     95        if (preg_match('/syntax error/',file_get_contents($file)) || preg_match('/sh: java: command not found/', file_get_contents($file))) 
    9696        { 
    9797                unlink($file); 
Note: See TracChangeset for help on using the changeset viewer.