blob: dcc2485fce3426d652a94ec31c3c96297de0fb17 [file] [log] [blame]
#!/bin/sh
# https://github.com/shyiko/ktlint pre-commit hook
git diff --name-only --cached --relative | grep '\.kts\?$' | xargs ktlint --relative .
if [ $? -ne 0 ]; then exit 1; fi