From e21d914c1c816b9b90227c2b5fc8226af00c116f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 2 Feb 2012 16:52:47 -0600 Subject: [PATCH] improve work directory cleanup. --- laravel/cli/tasks/bundle/providers/provider.php | 2 ++ laravel/file.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/laravel/cli/tasks/bundle/providers/provider.php b/laravel/cli/tasks/bundle/providers/provider.php index 4dc286db..80073710 100644 --- a/laravel/cli/tasks/bundle/providers/provider.php +++ b/laravel/cli/tasks/bundle/providers/provider.php @@ -40,6 +40,8 @@ protected function zipball($bundle, $url) $latest = File::latest(dirname($target)); + @chmod($latest->getRealPath(), 0777); + // Once we have the latest modified directory, we should be // able to move its contents over into the bundles folder // so the bundle will be usable by the develoepr. diff --git a/laravel/file.php b/laravel/file.php index 4796c6a3..7466427f 100644 --- a/laravel/file.php +++ b/laravel/file.php @@ -222,7 +222,7 @@ public static function cpdir($source, $destination, $delete = false, $options = { $path = $item->getRealPath(); - static::cpdir($path, $location); + static::cpdir($path, $location, $delete, $options); if ($delete) @rmdir($item->getRealPath()); }