1
0
Fork 0

resolve symbolic link in self-update command

pull/1797/head
Gábor Egyed 2013-04-13 17:01:43 +02:00
parent c65567447c
commit 9358401eed
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);