just: Remove existing hooks during install-hooks

This commit is contained in:
Adrian Duke 2026-04-09 12:23:46 +01:00 committed by Fintan Halpenny
parent ffe5b9ed08
commit 3e9df1c8e4
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ install-hooks:
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
for hook in {{hooks}}; do for hook in {{hooks}}; do
rm ".git/hooks/$hook"
cp {{hook-script}} ".git/hooks/$hook" cp {{hook-script}} ".git/hooks/$hook"
chmod +x ".git/hooks/$hook" chmod +x ".git/hooks/$hook"
done done