Эх сурвалжийг харах

fix LICENSE hack in compile script

Jordi Boggiano 13 жил өмнө
parent
commit
5b42f99441

+ 3 - 1
src/Composer/Compiler.php

@@ -104,8 +104,10 @@ class Compiler
 
 
         if ($strip) {
         if ($strip) {
             $content = php_strip_whitespace($file);
             $content = php_strip_whitespace($file);
-        } else {
+        } elseif ('LICENSE' === basename($file)) {
             $content = "\n".file_get_contents($file)."\n";
             $content = "\n".file_get_contents($file)."\n";
+        } else {
+            $content = file_get_contents($file);
         }
         }
 
 
         $content = str_replace('@package_version@', $this->version, $content);
         $content = str_replace('@package_version@', $this->version, $content);