#!/usr/bin/env bash # Succeed fast if we did not change any ruby file if ! git status --short | grep -q '\.rb$'; then exit 0 fi # Match style guide rake lint || exit 1