mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
c511b3415a
One can set the NO_HOOK env variable to avoid running the pre-commit hook. It can be useful when performing large refactorings.
13 lines
175 B
Bash
Executable File
13 lines
175 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [[ ! -z "$NO_HOOK" ]]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
. "$(dirname "$0")/_/husky.sh"
|
|
. "$(dirname "$0")/required-apps"
|
|
|
|
golangci-lint run -v --fix && \
|
|
cd web && ${PMGR} lint
|