mirror of
https://github.com/vmiklos/plees-tracker.git
synced 2026-03-13 09:50:40 +08:00
5 lines
194 B
Bash
Executable File
5 lines
194 B
Bash
Executable File
#!/bin/sh
|
|
# https://github.com/shyiko/ktlint pre-commit hook
|
|
git diff --name-only --cached --relative | grep '\.kt[s"]\?$' | xargs ktlint --android --relative .
|
|
if [ $? -ne 0 ]; then exit 1; fi
|