just: Remove existing hooks during install-hooks
This commit is contained in:
parent
ffe5b9ed08
commit
3e9df1c8e4
1
justfile
1
justfile
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue