Avoid double slashes if HOME ends with a slash, fixes #1227
parent
8949d43dca
commit
247d1aca41
|
@ -38,7 +38,7 @@ class Factory
|
|||
if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
|
||||
$home = getenv('APPDATA') . '/Composer';
|
||||
} else {
|
||||
$home = getenv('HOME') . '/.composer';
|
||||
$home = rtrim(getenv('HOME'), '/') . '/.composer';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue