snapshot of https://github.com/jitsi/jibri.git @ 3b45602c539ec69d128ea152ae587d0b6582191a (2026-09-15)
This commit is contained in:
9
resources/add_git_pre_commit_script.sh
Executable file
9
resources/add_git_pre_commit_script.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user