File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ protected function handle(): int
9999 $ this ->projectType ??= $ scaffoldOptions ['type ' ];
100100
101101 $ commands = [];
102- $ directory = $ this ->projectName !== '. ' ? getcwd () . '/ ' . $ this ->projectName : getcwd ();
102+ $ directory = path ( $ this ->projectName !== '. ' ? getcwd () . '/ ' . $ this ->projectName : getcwd ())-> normalize ();
103103
104104 if (!$ this ->option ('force ' )) {
105105 $ this ->verifyApplicationDoesntExist ($ directory );
@@ -122,11 +122,11 @@ protected function handle(): int
122122 return 1 ;
123123 }
124124
125- $ commands [] = "cd ' $ directory' " ;
125+ $ commands [] = "cd \" $ directory\" " ;
126126 $ commands [] = 'composer install --ansi ' ;
127127 } else {
128- $ commands [] = "composer create-project leafs/mvc:v4.x-dev ' $ directory' --ansi " ;
129- $ commands [] = "cd ' $ directory' " ;
128+ $ commands [] = "composer create-project leafs/mvc:v4.x-dev \" $ directory\" --ansi " ;
129+ $ commands [] = "cd \" $ directory\" " ;
130130 }
131131
132132 if ($ this ->option ('no-ansi ' )) {
You can’t perform that action at this time.
0 commit comments