mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
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.
This commit is contained in:
parent
2e2096023c
commit
c511b3415a
6
.github/pre-commit
vendored
6
.github/pre-commit
vendored
|
@ -1,4 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [[ ! -z "$NO_HOOK" ]]
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
. "$(dirname "$0")/required-apps"
|
. "$(dirname "$0")/required-apps"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user