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

Commit a36971e

Browse files
committed
some simple fixes to get going on windows
1 parent 4f496a1 commit a36971e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/lib/PatternLab/Migrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function runMigration($filename, $sourcePath, $destinationPath, $singl
118118
$fileName = str_replace($sourcePath,"",$object->getPathname());
119119

120120
// check to see if it's a new directory
121-
if ($object->isDir() && !is_dir($destinationPath.$fileName)) {
121+
if ($object->isDir() && !is_dir($destinationPath.$fileName)) {
122122
mkdir($destinationPath.$fileName);
123123
} else if ($object->isFile()) {
124124
copy($sourcePath.$fileName,$destinationPath.$fileName);

core/migrations/001-move-source.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"sourcePath": "core/source/",
3-
"destinationPath": "source/",
2+
"sourcePath": "core/source",
3+
"destinationPath": "source",
44
"checkType": "dirEmpty"
55
}

0 commit comments

Comments
 (0)