@@ -145,7 +145,7 @@ public function prepareDirectory(): void
145145 try {
146146 // let's do some magic here git is faster than copy
147147 MakerTestProcess::create (
148- '\\' === \DIRECTORY_SEPARATOR ? 'git clone %FLEX_PATH% %APP_PATH% ' : 'git clone "$FLEX_PATH" "$APP_PATH" ' ,
148+ '\\' === \DIRECTORY_SEPARATOR ? 'cp -R %FLEX_PATH% %APP_PATH% ' : 'cp -R "$FLEX_PATH" "$APP_PATH" ' ,
149149 \dirname ($ this ->flexPath ),
150150 [
151151 'FLEX_PATH ' => $ this ->flexPath ,
@@ -283,7 +283,7 @@ private function buildFlexSkeleton(): void
283283 'replace ' => '' ,
284284 ],
285285 ];
286- $ this ->processReplacements ($ replacements , $ this ->flexPath );
286+ $ this ->processReplacements ($ replacements , $ this ->flexPath , allowNotFound: true );
287287 // end of temp code
288288
289289 file_put_contents ($ this ->flexPath .'/.gitignore ' , "var/cache/ \n" );
@@ -294,10 +294,10 @@ private function buildFlexSkeleton(): void
294294 )->run ();
295295 }
296296
297- private function processReplacements (array $ replacements , string $ rootDir ): void
297+ private function processReplacements (array $ replacements , string $ rootDir, bool $ allowNotFound = false ): void
298298 {
299299 foreach ($ replacements as $ replacement ) {
300- $ this ->processReplacement ($ rootDir , $ replacement ['filename ' ], $ replacement ['find ' ], $ replacement ['replace ' ]);
300+ $ this ->processReplacement ($ rootDir , $ replacement ['filename ' ], $ replacement ['find ' ], $ replacement ['replace ' ], $ allowNotFound );
301301 }
302302 }
303303
0 commit comments