This repository was archived by the owner on Feb 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,10 @@ public function migrate($diffVersion = false) {
35
35
36
36
if (!$ migration ->isDot () && $ migration ->isFile () && ($ filename [0 ] != "_ " )) {
37
37
38
+ $ basePath = __DIR__ ."/../../../ " ;
38
39
$ migrationData = json_decode (file_get_contents ($ migration ->getPathname ()));
39
- $ sourcePath = __DIR__ . " /../../../ " .$ migrationData ->sourcePath ;
40
- $ destinationPath = __DIR__ . " /../../../ " .$ migrationData ->destinationPath ;
40
+ $ sourcePath = ( $ checkType == " fileExists " ) ? $ basePath .$ migrationData ->sourcePath : $ basePath . $ migrationData -> sourcePath . DIRECTORY_SEPARATOR ;
41
+ $ destinationPath = ( $ checkType == " fileExists " ) ? $ basePath .$ migrationData ->destinationPath : $ basePath . $ migrationData -> destinationPath . DIRECTORY_SEPARATOR ;
41
42
$ checkType = $ migrationData ->checkType ;
42
43
43
44
if ($ checkType == "dirEmpty " ) {
Original file line number Diff line number Diff line change 1
1
{
2
- "sourcePath" : " core/styleguide/ " ,
3
- "destinationPath" : " public/styleguide/ " ,
2
+ "sourcePath" : " core/styleguide" ,
3
+ "destinationPath" : " public/styleguide" ,
4
4
"checkType" : " versionDiffDir"
5
5
}
Original file line number Diff line number Diff line change 1
1
{
2
- "sourcePath" : " core/source/_patterns/00-atoms/00-meta/ " ,
3
- "destinationPath" : " source/_patterns/00-atoms/00-meta/ " ,
2
+ "sourcePath" : " core/source/_patterns/00-atoms/00-meta" ,
3
+ "destinationPath" : " source/_patterns/00-atoms/00-meta" ,
4
4
"checkType" : " dirExists"
5
5
}
You can’t perform that action at this time.
0 commit comments