build: disable pre-commit hook by env variable (#2887)
One can set the NO_HOOK env variable to avoid running the pre-commit hook. It can be useful when performing large refactorings.pull/2936/head
parent
2e2096023c
commit
c511b3415a
|
@ -1,4 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [[ ! -z "$NO_HOOK" ]]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
. "$(dirname "$0")/required-apps"
|
||||
|
||||
|
|
Loading…
Reference in New Issue