Explorar o código

chmod new file when running self-update

Jordi Boggiano %!s(int64=13) %!d(string=hai) anos
pai
achega
a9ccfeb548
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Composer/Command/SelfUpdateCommand.php

+ 1 - 0
src/Composer/Command/SelfUpdateCommand.php

@@ -53,6 +53,7 @@ EOT
             $rfs->copy('getcomposer.org', $remoteFilename, $tempFilename);
 
             try {
+                chmod($tempFilename, 0755);
                 // test the phar validity
                 $phar = new \Phar($tempFilename);
                 // free the variable to unlock the file