Skip to content

Commit e6d51ed

Browse files
committed
release dir 判断
1 parent c353b7a commit e6d51ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/InstallCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,9 @@ protected function createBaseDir($directory, OutputInterface $output)
222222
*/
223223
public function buildOpenCV($directory)
224224
{
225-
if (!file_exists($directory)) {
226-
$process = new Process(['mkdir', 'build'], $directory . '/opencv');
225+
$releaseDir = 'build';
226+
if (!file_exists($directory . '/opencv/' . $releaseDir)) {
227+
$process = new Process(['mkdir', $releaseDir], $directory . '/opencv');
227228
try {
228229
$process->mustRun();
229230
} catch (\Exception $e) {

0 commit comments

Comments
 (0)