tweak provider to use temp directory to avoid latest confusions.
This commit is contained in:
parent
ab5ce2a7eb
commit
1324ba368c
|
|
@ -39,9 +39,11 @@ protected function zipball($url, $bundle, $path)
|
||||||
// Once we have the Zip archive, we can open it and extract it
|
// Once we have the Zip archive, we can open it and extract it
|
||||||
// into the working directory. By convention, we expect the
|
// into the working directory. By convention, we expect the
|
||||||
// archive to contain one root directory with the bundle.
|
// archive to contain one root directory with the bundle.
|
||||||
$zip->extractTo($work);
|
mkdir($work.'zip');
|
||||||
|
|
||||||
$latest = File::latest($work)->getRealPath();
|
$zip->extractTo($work.'zip');
|
||||||
|
|
||||||
|
$latest = File::latest($work.'zip')->getRealPath();
|
||||||
|
|
||||||
@chmod($latest, 0777);
|
@chmod($latest, 0777);
|
||||||
|
|
||||||
|
|
@ -50,6 +52,8 @@ protected function zipball($url, $bundle, $path)
|
||||||
// so the bundle will be usable by the develoepr.
|
// so the bundle will be usable by the develoepr.
|
||||||
File::mvdir($latest, $path);
|
File::mvdir($latest, $path);
|
||||||
|
|
||||||
|
File::rmdir($work.'zip');
|
||||||
|
|
||||||
@unlink($target);
|
@unlink($target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue