Skip to content
Snippets Groups Projects
Commit 976e2f02 authored by jurgenhaas's avatar jurgenhaas
Browse files

#7 Run bower only if bower.json is available

parent b408d15a
No related branches found
No related tags found
No related merge requests found
......@@ -318,13 +318,13 @@ class Handler
public function updateTheme($event, $update = FALSE)
{
$fs = new Filesystem();
$destination = $this->getInstallationPath();
// We only do the fancy stuff for developers
if ($event->isDevMode()) {
$pluginRoot = $this->getInstallationManager()
->getInstallPath($this->getPackage('lakedrops/theme-d8-sass'));
$fs = new Filesystem();
$finder = new Finder();
$finder->ignoreDotFiles(FALSE);
......@@ -363,7 +363,7 @@ class Handler
}
// Handle Bower if not installed globally
if (!$this->getOption('bower_assets')['global']) {
if (!$this->getOption('bower_assets')['global'] && $fs->exists($destination . DIRECTORY_SEPARATOR . 'bower.json')) {
if ($update) {
$this->bower('update');
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment