diff --git a/packages/framework/src/Commands/HydeBuildStaticSiteCommand.php b/packages/framework/src/Commands/HydeBuildStaticSiteCommand.php index 0f8fa2e8b63..5c21fc35c3e 100644 --- a/packages/framework/src/Commands/HydeBuildStaticSiteCommand.php +++ b/packages/framework/src/Commands/HydeBuildStaticSiteCommand.php @@ -177,6 +177,7 @@ public function purge(): void if (! in_array(basename(Hyde::getSiteOutputPath()), config('hyde.safe_output_directories', ['_site', 'docs', 'build']))) { if (! $this->confirm('The configured output directory ('.Hyde::getSiteOutputPath().') is potentially unsafe to empty. Are you sure you want to continue?')) { $this->info('Output directory will not be emptied.'); + return; } }