File: check-git-clean.sh

package info (click to toggle)
node-immutable 4.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,676 kB
  • sloc: javascript: 8,303; sh: 17; makefile: 6
file content (13 lines) | stat: -rwxr-xr-x 308 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash -e

if ! git diff --quiet; then echo "

$(tput setf 4)The CI build resulted in additional changed files.
Typically this is due to not running $(tput smul)npm test$(tput rmul) locally before
submitting a pull request.

The following changes were found:$(tput sgr0)
";

  git diff --exit-code;
fi;