keycloak-scim/js/.husky/pre-commit
Jon Koops a2343740c8
Only run Husky scripts when installed (#27229)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-02-26 09:18:16 +01:00

11 lines
193 B
Text
Executable file

# Get the path the the Husky script.
DIRNAME="$(dirname "$0")"
FILE="$DIRNAME/_/husky.sh"
# Exit if Husky is not installed.
if [ ! -f "$FILE" ]; then
exit 0;
fi
cd js
pnpm exec lint-staged