Commit 299945de authored by samuel.mortenson's avatar samuel.mortenson Committed by Samuel Mortenson

Issue #3046316 by samuel.mortenson: Static command does not set building state flag

parent c8bbeec2
......@@ -92,6 +92,7 @@ class StaticCommand extends CommandBase {
return 0;
}
}
$this->state->set(StaticGeneratorInterface::STATE_KEY_BUILDING, TRUE);
$warnings = $this->getWarnings();
......@@ -122,6 +123,8 @@ class StaticCommand extends CommandBase {
$this->exportPaths($paths, [], $options['process-count'], $options['path-count'], TRUE, $options['retry-count'], $options['uri']);
$this->io->success('Exported static HTML and related assets.');
$this->state->set(StaticGeneratorInterface::STATE_KEY_BUILDING, FALSE);
$this->static->cleanupStaticDirectory();
if ($options['run-server']) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment