From b2f71dcb6ae838a713e2574b15a892154eab32e9 Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Sun, 13 Nov 2011 00:23:10 +0100 Subject: [PATCH] trim getcomposer.org/version output --- src/Composer/Command/SelfUpdateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php index df3ee4014..f2873165f 100644 --- a/src/Composer/Command/SelfUpdateCommand.php +++ b/src/Composer/Command/SelfUpdateCommand.php @@ -41,7 +41,7 @@ EOT { $composer = $this->getComposer(); - $latest = file_get_contents('http://getcomposer.org/version'); + $latest = trim(file_get_contents('http://getcomposer.org/version')); if (Composer::VERSION !== $latest) { $output->writeln(sprintf("Updating to version %s.", $latest));