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.
1 parent a8a22be commit 92751a6Copy full SHA for 92751a6
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