12 lines
164 B
Bash
12 lines
164 B
Bash
#!/bin/bash
|
|
|
|
echo "Running git pre-commit hook"
|
|
|
|
./gradlew ktlintFormat
|
|
|
|
RESULT=$?
|
|
|
|
# return 1 exit code if running checks fails
|
|
[ $RESULT -ne 0 ] && exit 1
|
|
exit 0
|