From 82a53e043e18f4fa1080abba2396efea4d2753ea Mon Sep 17 00:00:00 2001 From: Florian Wetzel Date: Wed, 5 Jun 2024 12:02:58 +0200 Subject: [PATCH] Fix copying directories --- install-git-hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-git-hooks.js b/install-git-hooks.js index 6272352..a21d9dd 100644 --- a/install-git-hooks.js +++ b/install-git-hooks.js @@ -54,7 +54,7 @@ function copyDir(src, dest) { }; function copy(src, dest) { - fs.copyFileSync(src, dest); + fs.cpSync(src, dest); }; module.exports = installGitHooks;