#!/bin/bash echo "Running git pre-commit hook" ./gradlew ktlintCheck RESULT=$? [ $RESULT -ne 0 ] && exit 1 exit 0