We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7530dfe + 92751a6 commit 3dfcdbaCopy full SHA for 3dfcdba
src/PhpGitHooks/Module/Configuration/Infrastructure/Hook/HookCopier.php
@@ -38,7 +38,7 @@ private function hookExists($hookFile)
38
*/
39
private function copyFile($hookFile)
40
{
41
- $copy = new Process(sprintf('cp %s %s', $hookFile, $this->hookDir));
+ $copy = new Process(sprintf("mkdir -p {$this->hookDir} && cp %s %s", $hookFile, $this->hookDir));
42
$copy->run();
43
}
44
0 commit comments