Skip to content

Commit aa4a9a8

Browse files
committed
fix: patch up create in '.'
1 parent 1a983a6 commit aa4a9a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CreateCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ protected function handle(): int
121121
return 1;
122122
}
123123

124-
$commands[] = 'cd ' . basename($directory);
124+
$commands[] = "cd '$directory'";
125125
$commands[] = 'composer install --ansi';
126126
} else {
127127
$commands[] = "composer create-project leafs/mvc:v4.x-dev '$directory' --ansi";
128-
$commands[] = 'cd ' . basename($directory);
128+
$commands[] = "cd '$directory'";
129129
}
130130

131131
if ($this->option('no-ansi')) {
@@ -202,7 +202,7 @@ protected function handle(): int
202202
],
203203
]);
204204

205-
$extraCommands = [$this->projectName === '.' ? '' : "cd '$directory'"];
205+
$extraCommands = ["cd '$directory'"];
206206

207207
if ($extraOptions['view'] ?? false) {
208208
$extraCommands[] = 'php leaf view:install --' . $extraOptions['view'];

0 commit comments

Comments
 (0)