We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2f2cdb commit d383378Copy full SHA for d383378
src/PatternLab/Fetch.php
@@ -99,7 +99,11 @@ public function fetchStarterKit($starterkit = "") {
99
$zippy = Zippy::load();
100
$zippy->addStrategy(new UnpackFileStrategy());
101
$zippy->getAdapterFor('tar.gz')->open($tempFile)->extract($tempDirSK);
102
-
+
103
+ if (!is_dir($tempDirDist)) {
104
+ // try without repo dir
105
+ $tempDirDist = $tempDirSK.DIRECTORY_SEPARATOR."dist";
106
+ }
107
// thrown an error if temp/dist/ doesn't exist
108
if (!is_dir($tempDirDist)) {
109
Console::writeError("the starterkit needs to contain a dist/ directory before it can be installed...");
0 commit comments