Update src/Composer/Downloader/ArchiveDownloader.php
Fixed single-file archive post-extraction movingpull/977/head
parent
091b2e86db
commit
03db848b23
|
@ -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{
|
||||
|
||||
|
|
Loading…
Reference in New Issue