fix: use outputDir property

This commit is contained in:
Oliver Davies 2023-05-08 22:54:17 +01:00
parent 356b97cbde
commit 64457770b9

View file

@ -47,12 +47,12 @@ final class GenerateConfigurationFiles
}); });
// If the Docker entrypoint file is generated, ensure it is executable. // If the Docker entrypoint file is generated, ensure it is executable.
if ($this->filesystem->exists("{$outputDir}/tools/docker/images/php/root/usr/local/bin/docker-entrypoint-php")) { if ($this->filesystem->exists("{$this->outputDir}/tools/docker/images/php/root/usr/local/bin/docker-entrypoint-php")) {
$filesystem->chmod("{$outputDir}/tools/docker/images/php/root/usr/local/bin/docker-entrypoint-php", 0755); $this->filesystem->chmod("{$this->outputDir}/tools/docker/images/php/root/usr/local/bin/docker-entrypoint-php", 0755);
} }
if ($this->filesystem->exists("{$outputDir}/.githooks/pre-push")) { if ($this->filesystem->exists("{$this->outputDir}/.githooks/pre-push")) {
$this->filesystem->chmod("{$outputDir}/.githooks/pre-push", 0755); $this->filesystem->chmod("{$this->outputDir}/.githooks/pre-push", 0755);
} }
return $next([$configurationDataDto, $filesToGenerate]); return $next([$configurationDataDto, $filesToGenerate]);