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()); }