Browse Source

Only check for existing files

Marc Würth 6 years ago
parent
commit
690ee2ea75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Shell/Task/ExtractTask.php

+ 1 - 1
src/Shell/Task/ExtractTask.php

@@ -622,7 +622,7 @@ class ExtractTask extends Shell
             $filename = str_replace('/', '_', $domain) . '.pot';
             $filename = str_replace('/', '_', $domain) . '.pot';
             $File = new File($this->_output . $filename);
             $File = new File($this->_output . $filename);
 
 
-            if ($this->_checkUnchanged($File, $headerLength, $output) === true) {
+            if ($File->exists() && $this->_checkUnchanged($File, $headerLength, $output) === true) {
                 $this->out($filename . ' is unchanged. Skipping.');
                 $this->out($filename . ' is unchanged. Skipping.');
                 $File->close();
                 $File->close();
                 continue;
                 continue;