Browse Source

Merge pull request #7753 from cakephp/issue-7751

Stop writing files with \r\n in windows.
José Lorenzo Rodríguez 10 years ago
parent
commit
5af4af7be9
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Console/Shell.php

+ 1 - 2
src/Console/Shell.php

@@ -736,8 +736,7 @@ class Shell
 
 
         $File = new File($path, true);
         $File = new File($path, true);
         if ($File->exists() && $File->writable()) {
         if ($File->exists() && $File->writable()) {
-            $data = $File->prepare($contents);
-            $File->write($data);
+            $File->write($contents);
             $this->_io->out(sprintf('<success>Wrote</success> `%s`', $path));
             $this->_io->out(sprintf('<success>Wrote</success> `%s`', $path));
             return true;
             return true;
         }
         }