Merge pull request #1797 from 1ed/self-update
Resolve symbolic link in self-update commandpull/1802/head
commit
68cb9c6606
|
@ -49,7 +49,7 @@ EOT
|
||||||
$output->writeln(sprintf("Updating to version <info>%s</info>.", $latest));
|
$output->writeln(sprintf("Updating to version <info>%s</info>.", $latest));
|
||||||
|
|
||||||
$remoteFilename = $protocol . '://getcomposer.org/composer.phar';
|
$remoteFilename = $protocol . '://getcomposer.org/composer.phar';
|
||||||
$localFilename = $_SERVER['argv'][0];
|
$localFilename = realpath($_SERVER['argv'][0]) ?: $_SERVER['argv'][0];
|
||||||
$tempFilename = dirname($localFilename) . '/' . basename($localFilename, '.phar').'-temp.phar';
|
$tempFilename = dirname($localFilename) . '/' . basename($localFilename, '.phar').'-temp.phar';
|
||||||
|
|
||||||
$rfs->copy('getcomposer.org', $remoteFilename, $tempFilename);
|
$rfs->copy('getcomposer.org', $remoteFilename, $tempFilename);
|
||||||
|
|
Loading…
Reference in New Issue