ConfigCommand: fix --force

This commit is contained in:
Thomas Gelf 2016-06-28 14:17:49 +02:00
parent 5dc641035d
commit e858539d2b
1 changed files with 7 additions and 7 deletions

View File

@ -67,14 +67,14 @@ class ConfigCommand extends Command
return;
}
}
if ($api->dumpConfig($config, $db)) {
printf("Config '%s' has been deployed\n", $checksum);
} else {
if ($api->dumpConfig($config, $db)) {
printf("Config '%s' has been deployed\n", $checksum);
} else {
$this->fail(
sprintf("Failed to deploy config '%s'\n", $checksum)
);
}
$this->fail(
sprintf("Failed to deploy config '%s'\n", $checksum)
);
}
}