Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 73f937a

Browse files
committed
properly setting checkType
1 parent 8e975cf commit 73f937a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/lib/PatternLab/Migrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public function migrate($diffVersion = false) {
3737

3838
$basePath = __DIR__."/../../../";
3939
$migrationData = json_decode(file_get_contents($migration->getPathname()));
40+
$checkType = $migrationData->checkType;
4041
$sourcePath = ($checkType == "fileExists") ? $basePath.$migrationData->sourcePath : $basePath.$migrationData->sourcePath.DIRECTORY_SEPARATOR;
4142
$destinationPath = ($checkType == "fileExists") ? $basePath.$migrationData->destinationPath : $basePath.$migrationData->destinationPath.DIRECTORY_SEPARATOR;
42-
$checkType = $migrationData->checkType;
4343

4444
if ($checkType == "dirEmpty") {
4545

0 commit comments

Comments
 (0)