1
0
Fork 0

Merge pull request #9575 from Ali-Shaikh/improve-update-msg

Improving Composer self-update (version up-to date) info message
pull/9586/head
Jordi Boggiano 2020-12-27 20:51:52 +01:00 committed by GitHub
commit 2406a094d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ EOT
$composeUser = posix_getpwuid(posix_geteuid());
$homeOwner = posix_getpwuid(fileowner($home));
if (isset($composeUser['name'], $homeOwner['name']) && $composeUser['name'] !== $homeOwner['name']) {
$io->writeError('<warning>You are running composer as "'.$composeUser['name'].'", while "'.$home.'" is owned by "'.$homeOwner['name'].'"</warning>');
$io->writeError('<warning>You are running Composer as "'.$composeUser['name'].'", while "'.$home.'" is owned by "'.$homeOwner['name'].'"</warning>');
}
}
@ -185,7 +185,7 @@ EOT
if (Composer::VERSION === $updateVersion) {
$io->writeError(
sprintf(
'<info>You are already using composer version %s (%s channel).</info>',
'<info>You are already using the latest available Composer version %s (%s channel).</info>',
$updateVersion,
$channelString
)