Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit 21b2731

Browse files
committed
bug #140 Fix error due to bad file path when installer is located at drive root o... (leto3087)
This PR was merged into the 1.0-dev branch. Discussion ---------- Fix error due to bad file path when installer is located at drive root o... ...n Windows Commits ------- 97aa7d0 Fix error due to bad file path when installer is located at drive root on Windows
2 parents 9f05b82 + 97aa7d0 commit 21b2731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Installer/DownloadCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function download()
117117
$client->getEmitter()->attach(new Progress(null, $downloadCallback));
118118

119119
// store the file in a temporary hidden directory with a random name
120-
$this->downloadedFilePath = getcwd().DIRECTORY_SEPARATOR.'.'.uniqid(time()).DIRECTORY_SEPARATOR.'symfony.'.pathinfo($symfonyArchiveFile, PATHINFO_EXTENSION);
120+
$this->downloadedFilePath = rtrim(getcwd(), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.'.'.uniqid(time()).DIRECTORY_SEPARATOR.'symfony.'.pathinfo($symfonyArchiveFile, PATHINFO_EXTENSION);
121121

122122
try {
123123
$response = $client->get($symfonyArchiveFile);

0 commit comments

Comments
 (0)