attempt to clean up working directory after bundle install.
This commit is contained in:
@@ -23,7 +23,7 @@ abstract class Provider {
|
||||
{
|
||||
// When installing a bundle from a Zip archive, we'll first clone
|
||||
// down the bundle zip into the bundles "working" directory so
|
||||
// we have a spot to do all of our bundle extrations.
|
||||
// we have a spot to do all of our bundle extration work.
|
||||
$target = path('storage').'work/laravel-bundle.zip';
|
||||
|
||||
File::put($target, file_get_contents($url));
|
||||
@@ -46,6 +46,8 @@ abstract class Provider {
|
||||
$path = $this->path($bundle);
|
||||
|
||||
File::cpdir($latest->getRealPath(), path('bundle').$path);
|
||||
|
||||
@unlink($target);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user