1
0
Fork 0

Merge pull request #1797 from 1ed/self-update

Resolve symbolic link in self-update command
pull/1802/head
Jordi Boggiano 2013-04-14 01:16:05 -07:00
commit 68cb9c6606
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ EOT
$output->writeln(sprintf("Updating to version <info>%s</info>.", $latest));
$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';
$rfs->copy('getcomposer.org', $remoteFilename, $tempFilename);