Files
upstream-jibri/resources/add_git_pre_commit_script.sh
upstream-mirror 650a143b63
Some checks failed
Java CI with Maven / Java 17 (push) Failing after 4m40s
Java CI with Maven / Java 21 (push) Failing after 4m41s
snapshot of https://github.com/jitsi/jibri.git @ 3b45602c539ec69d128ea152ae587d0b6582191a (2026-09-15)
2026-09-15 16:13:58 +05:00

10 lines
250 B
Bash
Executable File

#!/bin/bash
PRE_COMMIT_HOOK_FILE=".git/hooks/pre-commit"
echo "#!/bin/bash" >> $PRE_COMMIT_HOOK_FILE
echo "echo \"Running linter\"" >> $PRE_COMMIT_HOOK_FILE
echo "mvn exec:exec@ktlint-check" >> $PRE_COMMIT_HOOK_FILE
chmod +x $PRE_COMMIT_HOOK_FILE