#!/bin/sh if ! git diff --staged --name-only | grep -qE ".*\.go$|\.golangci\.yml$"; then echo "Nothing to lint" exit 0; fi make lint