• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2
3set -euo pipefail
4
5modified_lines=$(git status --short -uno | wc -l)
6(( modified_lines == 0 )) && exit 0
7
8echo >&2
9echo >&2 "ERROR: Style changes detected"
10echo >&2
11
12git diff
13
14echo >&2
15echo >&2 "ERROR: Squash the above changes as needed"
16echo >&2
17
18exit 1
19