Skip to content

Commit d383378

Browse files
committed
Cross-platform fix
1 parent e2f2cdb commit d383378

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/PatternLab/Fetch.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ public function fetchStarterKit($starterkit = "") {
9999
$zippy = Zippy::load();
100100
$zippy->addStrategy(new UnpackFileStrategy());
101101
$zippy->getAdapterFor('tar.gz')->open($tempFile)->extract($tempDirSK);
102-
102+
103+
if (!is_dir($tempDirDist)) {
104+
// try without repo dir
105+
$tempDirDist = $tempDirSK.DIRECTORY_SEPARATOR."dist";
106+
}
103107
// thrown an error if temp/dist/ doesn't exist
104108
if (!is_dir($tempDirDist)) {
105109
Console::writeError("the starterkit needs to contain a dist/ directory before it can be installed...");

0 commit comments

Comments
 (0)