Skip to content

Commit 8559496

Browse files
committed
moving the 'hey, i've been installed' behind a create-project set flag
1 parent bab96a8 commit 8559496

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/PatternLab/InstallerUtil.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -575,17 +575,6 @@ protected static function promptStarterKitInstall($starterKitSuggestions) {
575575
$f = new Fetch();
576576
$result = $f->fetchStarterKit($suggestions[$result]);
577577

578-
if ($result) {
579-
580-
Console::writeLine("");
581-
$g = new Generator();
582-
$g->generate(array("foo" => "bar"));
583-
584-
Console::writeLine("");
585-
Console::writeInfo("type <desc>php core/console --server</desc> to start the built-in server and see Pattern Lab...", false, true);
586-
587-
}
588-
589578
}
590579

591580
}
@@ -660,6 +649,17 @@ protected static function runTasks($installerInfo) {
660649

661650
}
662651

652+
if ($installerInfo["projectInstall"]) {
653+
654+
Console::writeLine("");
655+
$g = new Generator();
656+
$g->generate(array("foo" => "bar"));
657+
658+
Console::writeLine("");
659+
Console::writeInfo("type <desc>php core/console --server</desc> to start the built-in server and see Pattern Lab...", false, true);
660+
661+
}
662+
663663
}
664664

665665
/**

0 commit comments

Comments
 (0)