Skip to content

Commit

Permalink
Settings files_exists check. (#1765)
Browse files Browse the repository at this point in the history
* Settings files exists check.

* Fixing array format.
  • Loading branch information
dpagini authored and grasmash committed Jul 6, 2017
1 parent 7ee570c commit 809bfde
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Robo/Commands/Setup/SettingsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,17 @@ public function generateSiteConfigFiles() {

$copy_map = [
$default_project_default_settings_file => $project_default_settings_file,
$project_default_settings_file => $project_settings_file,
$blt_local_settings_file => $default_local_settings_file,
$default_local_settings_file => $project_local_settings_file,
$blt_local_drush_file => $default_local_drush_file,
$default_local_drush_file => $project_local_drush_file,
];

// Only add the settings file if the default exists.
if (file_exists($project_default_settings_file)) {
$copy_map[$project_default_settings_file] = $project_settings_file;
}

$task = $this->taskFilesystemStack()
->stopOnFail()
->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
Expand Down

0 comments on commit 809bfde

Please sign in to comment.