Skip to content

Commit 7f023ab

Browse files
gilbertomangonesenzolutions
authored andcommitted
Fix path config:export on root Drupal (#4153)
1 parent 9b9d8b3 commit 7f023ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Command/Config/ExportCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,15 @@ protected function execute(InputInterface $input, OutputInterface $output)
9898
$tar = $input->getOption('tar');
9999
$removeUuid = $input->getOption('remove-uuid');
100100
$removeHash = $input->getOption('remove-config-hash');
101+
$drupal_root = $this->drupalFinder->getComposerRoot();
101102

102103
if (!$directory) {
103104
$directory = config_get_config_directory(CONFIG_SYNC_DIRECTORY);
104105
}
105106

106107
$fileSystem = new Filesystem();
107108
try {
108-
$fileSystem->mkdir($directory);
109+
$fileSystem->mkdir($drupal_root."/".$directory);
109110
} catch (IOExceptionInterface $e) {
110111
$this->getIo()->error(
111112
sprintf(

0 commit comments

Comments
 (0)