1
0
Fork 0

replace current file in self-update command

pull/107/head
Igor Wiedler 2011-11-13 00:31:38 +01:00
parent b2f71dcb6a
commit 3c036428de
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ EOT
$output->writeln(sprintf("Updating to version %s.", $latest));
$remoteFilename = 'http://getcomposer.org/composer.phar';
$localFilename = getcwd().'/composer.phar';
$localFilename = $_SERVER['argv'][0];
file_put_contents($localFilename, file_get_contents($remoteFilename));
} else {