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];
|
$contentDir = $contentDir[0];
|
||||||
|
|
||||||
if(is_file($contentDir)){
|
if(is_file($contentDir)){
|
||||||
rename($contentDir, $path . '/' . basename($fileName));
|
rename($contentDir, $path . '/' . basename($contentDir));
|
||||||
unlink($contentDir);
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue