attempt to clean up working directory after bundle install.

This commit is contained in:
Taylor Otwell
2012-02-02 15:52:57 -06:00
parent e0c84a94cc
commit b97dccfbbc
2 changed files with 25 additions and 8 deletions

View File

@@ -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);
}
/**