diff --git a/src/Composer/Downloader/ArchiveDownloader.php b/src/Composer/Downloader/ArchiveDownloader.php index 3bafc4e8c..e28788633 100644 --- a/src/Composer/Downloader/ArchiveDownloader.php +++ b/src/Composer/Downloader/ArchiveDownloader.php @@ -48,8 +48,7 @@ abstract class ArchiveDownloader extends FileDownloader $contentDir = $contentDir[0]; if(is_file($contentDir)){ - rename($contentDir, $path . '/' . basename($fileName)); - unlink($contentDir); + rename($contentDir, $path . '/' . basename($contentDir)); } else{