From 021cd5d354d487d10094f978c3ae81ff0079b873 Mon Sep 17 00:00:00 2001 From: g3r4 Date: Fri, 28 Apr 2017 14:14:40 -0400 Subject: [PATCH] Removed files from config export directory, fix #3287 (#3288) --- src/Command/Config/ExportCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Command/Config/ExportCommand.php b/src/Command/Config/ExportCommand.php index 542bcfa27..b4c1443eb 100644 --- a/src/Command/Config/ExportCommand.php +++ b/src/Command/Config/ExportCommand.php @@ -107,6 +107,9 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } + // Remove previous yaml files before creating new ones + array_map('unlink', glob($directory . '/*')); + if ($tar) { $dateTime = new \DateTime();