@@ -145,7 +145,7 @@ public function prepareDirectory(): void
145
145
try {
146
146
// let's do some magic here git is faster than copy
147
147
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" ' ,
149
149
\dirname ($ this ->flexPath ),
150
150
[
151
151
'FLEX_PATH ' => $ this ->flexPath ,
@@ -283,7 +283,7 @@ private function buildFlexSkeleton(): void
283
283
'replace ' => '' ,
284
284
],
285
285
];
286
- $ this ->processReplacements ($ replacements , $ this ->flexPath );
286
+ $ this ->processReplacements ($ replacements , $ this ->flexPath , allowNotFound: true );
287
287
// end of temp code
288
288
289
289
file_put_contents ($ this ->flexPath .'/.gitignore ' , "var/cache/ \n" );
@@ -294,10 +294,10 @@ private function buildFlexSkeleton(): void
294
294
)->run ();
295
295
}
296
296
297
- private function processReplacements (array $ replacements , string $ rootDir ): void
297
+ private function processReplacements (array $ replacements , string $ rootDir, bool $ allowNotFound = false ): void
298
298
{
299
299
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 );
301
301
}
302
302
}
303
303
0 commit comments