Debian Codegraph @

git/hooks/pre-commit.sh

raw
1 #!/bin/bash
2
3 status=0
4
5 PRECIOUS=$(which precious)
6 if [[ -z $PRECIOUS ]]; then
7 PRECIOUS=./bin/precious
8 fi
9
10 "$PRECIOUS" lint -s
11 if (( $? != 0 )); then
12 status+=1
13 fi
14
15 exit $status