File: test.sh

package info (click to toggle)
damo 3.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,492 kB
  • sloc: python: 14,063; sh: 958; makefile: 30; ansic: 13
file content (15 lines) | stat: -rwxr-xr-x 206 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if ! which pre-commit &> /dev/null
then
	echo "pre-commit not installed. skip."
	exit 0
fi

if ! pre-commit run --all-file
then
	echo "FAIL pre-commit"
	exit 1
fi
echo "PASS pre-commit"
exit 0